No behavior change. Makes unittests CMakeLists.txt files more self-consistent.
llvm-svn: 332280
Support
)
-set(ADTSources
+add_llvm_unittest(ADTTests
APFloatTest.cpp
APIntTest.cpp
APSIntTest.cpp
TripleTest.cpp
TwineTest.cpp
VariadicFunctionTest.cpp
- )
-
-add_llvm_unittest(ADTTests
- ${ADTSources}
)
add_dependencies(ADTTests intrinsics_gen)
Target
)
-set(CodeGenSources
+add_llvm_unittest(CodeGenTests
DIEHashTest.cpp
LowLevelTypeTest.cpp
MachineInstrBundleIteratorTest.cpp
ScalableVectorMVTsTest.cpp
)
-add_llvm_unittest(CodeGenTests
- ${CodeGenSources}
- )
-
add_subdirectory(GlobalISel)
DebugInfoCodeView
)
-set(DebugInfoCodeViewSources
+add_llvm_unittest(DebugInfoCodeViewTests
RandomAccessVisitorTest.cpp
TypeHashingTest.cpp
TypeIndexDiscoveryTest.cpp
)
-add_llvm_unittest(DebugInfoCodeViewTests
- ${DebugInfoCodeViewSources}
- )
-
target_link_libraries(DebugInfoCodeViewTests PRIVATE LLVMTestingSupport)
Support
)
-set(DebugInfoSources
+add_llvm_unittest(DebugInfoDWARFTests
DwarfGenerator.cpp
DwarfUtils.cpp
DWARFDebugInfoTest.cpp
DWARFFormValueTest.cpp
)
-add_llvm_unittest(DebugInfoDWARFTests
- ${DebugInfoSources}
- )
-
target_link_libraries(DebugInfoDWARFTests PRIVATE LLVMTestingSupport)
DebugInfoMSF
)
-set(DebugInfoMSFSources
+add_llvm_unittest(DebugInfoMSFTests
MappedBlockStreamTest.cpp
MSFBuilderTest.cpp
MSFCommonTest.cpp
)
-add_llvm_unittest(DebugInfoMSFTests
- ${DebugInfoMSFSources}
- )
-
target_link_libraries(DebugInfoMSFTests PRIVATE LLVMTestingSupport)
DebugInfoPDB
)
-set(DebugInfoPDBSources
+add_llvm_unittest(DebugInfoPDBTests
HashTableTest.cpp
StringTableBuilderTest.cpp
PDBApiTest.cpp
)
-add_llvm_unittest(DebugInfoPDBTests
- ${DebugInfoPDBSources}
- )
-
target_link_libraries(DebugInfoPDBTests PRIVATE LLVMTestingSupport)
Demangle
)
-set(DemangleSources
- PartialDemangleTest.cpp
-)
-
add_llvm_unittest(DemangleTests
- ${DemangleSources}
+ PartialDemangleTest.cpp
)
Passes
)
-set(IRSources
+add_llvm_unittest(IRTests
AsmWriterTest.cpp
AttributesTest.cpp
BasicBlockTest.cpp
VerifierTest.cpp
WaymarkTest.cpp
)
-
-add_llvm_unittest(IRTests
- ${IRSources}
- )
linker
)
-set(LinkerSources
- LinkModulesTest.cpp
- )
-
add_llvm_unittest(LinkerTests
- ${LinkerSources}
+ LinkModulesTest.cpp
)
Support
)
-set(XRAYSources
- GraphTest.cpp
- )
-
add_llvm_unittest(XRayTests
- ${XRAYSources}
+ GraphTest.cpp
)
add_dependencies(XRayTests intrinsics_gen)