1set(LLVM_LINK_COMPONENTS 2 Analysis 3 AsmParser 4 Core 5 Support 6 ) 7 8set(IRSources 9 AttributesTest.cpp 10 ConstantRangeTest.cpp 11 ConstantsTest.cpp 12 DebugInfoTest.cpp 13 DominatorTreeTest.cpp 14 IRBuilderTest.cpp 15 InstructionsTest.cpp 16 LegacyPassManagerTest.cpp 17 MDBuilderTest.cpp 18 MetadataTest.cpp 19 PassManagerTest.cpp 20 PatternMatch.cpp 21 TypeBuilderTest.cpp 22 TypesTest.cpp 23 UseTest.cpp 24 UserTest.cpp 25 ValueHandleTest.cpp 26 ValueMapTest.cpp 27 ValueTest.cpp 28 VerifierTest.cpp 29 WaymarkTest.cpp 30 ) 31 32# HACK: Declare a couple of source files as optionally compiled to satisfy the 33# missing-file-checker in LLVM's weird CMake build. 34set(LLVM_OPTIONAL_SOURCES 35 ValueMapTest.cpp 36 ) 37 38add_llvm_unittest(IRTests 39 ${IRSources} 40 ) 41