mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[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
d66cb7f668
commit
0bfde8fac7
@ -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…
x
Reference in New Issue
Block a user