[unittests] Move TargetRegistry test from Support to MC

This removes the dependency from SupportTests to all of the LLVM
backends, and makes it link faster.

llvm-svn: 259705
This commit is contained in:
Reid Kleckner 2016-02-03 21:41:24 +00:00
parent c2e2311627
commit 17495274fd
3 changed files with 6 additions and 3 deletions

View File

@ -9,5 +9,6 @@ add_llvm_unittest(MCTests
Disassembler.cpp
DwarfLineTables.cpp
StringTableBuilderTest.cpp
TargetRegistry.cpp
YAMLTest.cpp
)

View File

@ -1,4 +1,4 @@
//===- unittests/Support/TargetRegistry.cpp - -----------------------------===//
//===- unittests/MC/TargetRegistry.cpp ------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
@ -7,6 +7,10 @@
//
//===----------------------------------------------------------------------===//
// The target registry code lives in Support, but it relies on linking in all
// LLVM targets. We keep this test with the MC tests, which already do that, to
// keep the SupportTests target small.
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h"
#include "gtest/gtest.h"

View File

@ -1,5 +1,4 @@
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
Support
)
@ -39,7 +38,6 @@ add_llvm_unittest(SupportTests
StreamingMemoryObject.cpp
StringPool.cpp
SwapByteOrderTest.cpp
TargetRegistry.cpp
ThreadLocalTest.cpp
ThreadPool.cpp
TimerTest.cpp