forked from OSchip/llvm-project
[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:
parent
c2e2311627
commit
17495274fd
|
@ -9,5 +9,6 @@ add_llvm_unittest(MCTests
|
|||
Disassembler.cpp
|
||||
DwarfLineTables.cpp
|
||||
StringTableBuilderTest.cpp
|
||||
TargetRegistry.cpp
|
||||
YAMLTest.cpp
|
||||
)
|
||||
|
|
|
@ -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"
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue