llvm.org GIT mirror llvm / 3220080
Inline a few CMake variables into their only uses. No behavior change. Makes unittests CMakeLists.txt files more self-consistent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332280 91177308-0d34-0410-b5e6-96231b3b80d8 Nico Weber 1 year, 5 months ago
10 changed file(s) with 10 addition(s) and 50 deletion(s). Raw diff Collapse all Expand all
11 Support
22 )
33
4 set(ADTSources
4 add_llvm_unittest(ADTTests
55 APFloatTest.cpp
66 APIntTest.cpp
77 APSIntTest.cpp
6464 TripleTest.cpp
6565 TwineTest.cpp
6666 VariadicFunctionTest.cpp
67 )
68
69 add_llvm_unittest(ADTTests
70 ${ADTSources}
7167 )
7268
7369 add_dependencies(ADTTests intrinsics_gen)
77 Target
88 )
99
10 set(CodeGenSources
10 add_llvm_unittest(CodeGenTests
1111 DIEHashTest.cpp
1212 LowLevelTypeTest.cpp
1313 MachineInstrBundleIteratorTest.cpp
1616 ScalableVectorMVTsTest.cpp
1717 )
1818
19 add_llvm_unittest(CodeGenTests
20 ${CodeGenSources}
21 )
22
2319 add_subdirectory(GlobalISel)
11 DebugInfoCodeView
22 )
33
4 set(DebugInfoCodeViewSources
4 add_llvm_unittest(DebugInfoCodeViewTests
55 RandomAccessVisitorTest.cpp
66 TypeHashingTest.cpp
77 TypeIndexDiscoveryTest.cpp
88 )
99
10 add_llvm_unittest(DebugInfoCodeViewTests
11 ${DebugInfoCodeViewSources}
12 )
13
1410 target_link_libraries(DebugInfoCodeViewTests PRIVATE LLVMTestingSupport)
77 Support
88 )
99
10 set(DebugInfoSources
10 add_llvm_unittest(DebugInfoDWARFTests
1111 DwarfGenerator.cpp
1212 DwarfUtils.cpp
1313 DWARFDebugInfoTest.cpp
1515 DWARFFormValueTest.cpp
1616 )
1717
18 add_llvm_unittest(DebugInfoDWARFTests
19 ${DebugInfoSources}
20 )
21
2218 target_link_libraries(DebugInfoDWARFTests PRIVATE LLVMTestingSupport)
11 DebugInfoMSF
22 )
33
4 set(DebugInfoMSFSources
4 add_llvm_unittest(DebugInfoMSFTests
55 MappedBlockStreamTest.cpp
66 MSFBuilderTest.cpp
77 MSFCommonTest.cpp
88 )
99
10 add_llvm_unittest(DebugInfoMSFTests
11 ${DebugInfoMSFSources}
12 )
13
1410 target_link_libraries(DebugInfoMSFTests PRIVATE LLVMTestingSupport)
33 DebugInfoPDB
44 )
55
6 set(DebugInfoPDBSources
6 add_llvm_unittest(DebugInfoPDBTests
77 HashTableTest.cpp
88 StringTableBuilderTest.cpp
99 PDBApiTest.cpp
1010 )
1111
12 add_llvm_unittest(DebugInfoPDBTests
13 ${DebugInfoPDBSources}
14 )
15
1612 target_link_libraries(DebugInfoPDBTests PRIVATE LLVMTestingSupport)
11 Demangle
22 )
33
4 set(DemangleSources
4 add_llvm_unittest(DemangleTests
55 PartialDemangleTest.cpp
66 )
7
8 add_llvm_unittest(DemangleTests
9 ${DemangleSources}
10 )
55 Passes
66 )
77
8 set(IRSources
8 add_llvm_unittest(IRTests
99 AsmWriterTest.cpp
1010 AttributesTest.cpp
1111 BasicBlockTest.cpp
3939 VerifierTest.cpp
4040 WaymarkTest.cpp
4141 )
42
43 add_llvm_unittest(IRTests
44 ${IRSources}
45 )
33 linker
44 )
55
6 set(LinkerSources
6 add_llvm_unittest(LinkerTests
77 LinkModulesTest.cpp
88 )
9
10 add_llvm_unittest(LinkerTests
11 ${LinkerSources}
12 )
11 Support
22 )
33
4 set(XRAYSources
5 GraphTest.cpp
6 )
7
84 add_llvm_unittest(XRayTests
9 ${XRAYSources}
5 GraphTest.cpp
106 )
117
128 add_dependencies(XRayTests intrinsics_gen)