2012-06-21 17:51:26 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
asmparser
|
|
|
|
core
|
|
|
|
ipa
|
|
|
|
)
|
|
|
|
|
2013-01-07 23:35:46 +08:00
|
|
|
set(IRSources
|
2013-01-12 22:13:45 +08:00
|
|
|
AttributesTest.cpp
|
2012-06-21 17:51:26 +08:00
|
|
|
ConstantsTest.cpp
|
|
|
|
DominatorTreeTest.cpp
|
2012-07-16 15:44:45 +08:00
|
|
|
IRBuilderTest.cpp
|
2012-06-21 17:51:26 +08:00
|
|
|
InstructionsTest.cpp
|
2012-07-16 07:26:50 +08:00
|
|
|
MDBuilderTest.cpp
|
2012-06-21 17:51:26 +08:00
|
|
|
MetadataTest.cpp
|
|
|
|
PassManagerTest.cpp
|
2013-05-05 10:14:28 +08:00
|
|
|
PatternMatch.cpp
|
2012-07-16 07:45:24 +08:00
|
|
|
TypeBuilderTest.cpp
|
2012-08-04 17:52:39 +08:00
|
|
|
TypesTest.cpp
|
2012-06-21 17:51:26 +08:00
|
|
|
ValueMapTest.cpp
|
2013-04-12 16:33:11 +08:00
|
|
|
ValueTest.cpp
|
2012-06-21 17:51:26 +08:00
|
|
|
VerifierTest.cpp
|
2012-11-12 18:01:17 +08:00
|
|
|
WaymarkTest.cpp
|
2012-06-21 17:51:26 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
|
|
|
|
# See issue#331418 in Visual Studio.
|
|
|
|
if(MSVC AND MSVC_VERSION LESS 1600)
|
2013-01-07 23:35:46 +08:00
|
|
|
list(REMOVE_ITEM IRSources ValueMapTest.cpp)
|
2012-06-21 17:51:26 +08:00
|
|
|
endif()
|
|
|
|
|
2012-06-22 06:17:39 +08:00
|
|
|
# HACK: Declare a couple of source files as optionally compiled to satisfy the
|
|
|
|
# missing-file-checker in LLVM's weird CMake build.
|
|
|
|
set(LLVM_OPTIONAL_SOURCES
|
|
|
|
ValueMapTest.cpp
|
|
|
|
)
|
|
|
|
|
2013-01-07 23:35:46 +08:00
|
|
|
add_llvm_unittest(IRTests
|
|
|
|
${IRSources}
|
2012-06-21 17:51:26 +08:00
|
|
|
)
|