1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Inline a few CMake variables into their only uses.

No behavior change. Makes unittests CMakeLists.txt files more self-consistent.

llvm-svn: 332280
This commit is contained in:
Nico Weber 2018-05-14 19:23:31 +00:00
parent e05a316849
commit 614f75cd49
10 changed files with 10 additions and 50 deletions

View File

@ -2,7 +2,7 @@ set(LLVM_LINK_COMPONENTS
Support
)
set(ADTSources
add_llvm_unittest(ADTTests
APFloatTest.cpp
APIntTest.cpp
APSIntTest.cpp
@ -65,10 +65,6 @@ set(ADTSources
TripleTest.cpp
TwineTest.cpp
VariadicFunctionTest.cpp
)
add_llvm_unittest(ADTTests
${ADTSources}
)
add_dependencies(ADTTests intrinsics_gen)

View File

@ -8,7 +8,7 @@ set(LLVM_LINK_COMPONENTS
Target
)
set(CodeGenSources
add_llvm_unittest(CodeGenTests
DIEHashTest.cpp
LowLevelTypeTest.cpp
MachineInstrBundleIteratorTest.cpp
@ -17,8 +17,4 @@ set(CodeGenSources
ScalableVectorMVTsTest.cpp
)
add_llvm_unittest(CodeGenTests
${CodeGenSources}
)
add_subdirectory(GlobalISel)

View File

@ -2,14 +2,10 @@ set(LLVM_LINK_COMPONENTS
DebugInfoCodeView
)
set(DebugInfoCodeViewSources
add_llvm_unittest(DebugInfoCodeViewTests
RandomAccessVisitorTest.cpp
TypeHashingTest.cpp
TypeIndexDiscoveryTest.cpp
)
add_llvm_unittest(DebugInfoCodeViewTests
${DebugInfoCodeViewSources}
)
target_link_libraries(DebugInfoCodeViewTests PRIVATE LLVMTestingSupport)

View File

@ -8,7 +8,7 @@ set(LLVM_LINK_COMPONENTS
Support
)
set(DebugInfoSources
add_llvm_unittest(DebugInfoDWARFTests
DwarfGenerator.cpp
DwarfUtils.cpp
DWARFDebugInfoTest.cpp
@ -16,8 +16,4 @@ set(DebugInfoSources
DWARFFormValueTest.cpp
)
add_llvm_unittest(DebugInfoDWARFTests
${DebugInfoSources}
)
target_link_libraries(DebugInfoDWARFTests PRIVATE LLVMTestingSupport)

View File

@ -2,14 +2,10 @@ set(LLVM_LINK_COMPONENTS
DebugInfoMSF
)
set(DebugInfoMSFSources
add_llvm_unittest(DebugInfoMSFTests
MappedBlockStreamTest.cpp
MSFBuilderTest.cpp
MSFCommonTest.cpp
)
add_llvm_unittest(DebugInfoMSFTests
${DebugInfoMSFSources}
)
target_link_libraries(DebugInfoMSFTests PRIVATE LLVMTestingSupport)

View File

@ -4,14 +4,10 @@ set(LLVM_LINK_COMPONENTS
DebugInfoPDB
)
set(DebugInfoPDBSources
add_llvm_unittest(DebugInfoPDBTests
HashTableTest.cpp
StringTableBuilderTest.cpp
PDBApiTest.cpp
)
add_llvm_unittest(DebugInfoPDBTests
${DebugInfoPDBSources}
)
target_link_libraries(DebugInfoPDBTests PRIVATE LLVMTestingSupport)

View File

@ -2,10 +2,6 @@ set(LLVM_LINK_COMPONENTS
Demangle
)
set(DemangleSources
add_llvm_unittest(DemangleTests
PartialDemangleTest.cpp
)
add_llvm_unittest(DemangleTests
${DemangleSources}
)

View File

@ -6,7 +6,7 @@ set(LLVM_LINK_COMPONENTS
Passes
)
set(IRSources
add_llvm_unittest(IRTests
AsmWriterTest.cpp
AttributesTest.cpp
BasicBlockTest.cpp
@ -40,7 +40,3 @@ set(IRSources
VerifierTest.cpp
WaymarkTest.cpp
)
add_llvm_unittest(IRTests
${IRSources}
)

View File

@ -4,10 +4,6 @@ set(LLVM_LINK_COMPONENTS
linker
)
set(LinkerSources
add_llvm_unittest(LinkerTests
LinkModulesTest.cpp
)
add_llvm_unittest(LinkerTests
${LinkerSources}
)

View File

@ -2,12 +2,8 @@ set(LLVM_LINK_COMPONENTS
Support
)
set(XRAYSources
GraphTest.cpp
)
add_llvm_unittest(XRayTests
${XRAYSources}
GraphTest.cpp
)
add_dependencies(XRayTests intrinsics_gen)