2012-06-21 09:51:26 +00:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
asmparser
|
|
|
|
core
|
|
|
|
ipa
|
|
|
|
)
|
|
|
|
|
2013-01-07 15:35:46 +00:00
|
|
|
set(IRSources
|
2013-01-12 14:13:45 +00:00
|
|
|
AttributesTest.cpp
|
2012-06-21 09:51:26 +00:00
|
|
|
ConstantsTest.cpp
|
|
|
|
DominatorTreeTest.cpp
|
2012-07-16 07:44:45 +00:00
|
|
|
IRBuilderTest.cpp
|
2012-06-21 09:51:26 +00:00
|
|
|
InstructionsTest.cpp
|
2012-07-15 23:26:50 +00:00
|
|
|
MDBuilderTest.cpp
|
2012-06-21 09:51:26 +00:00
|
|
|
MetadataTest.cpp
|
|
|
|
PassManagerTest.cpp
|
2013-05-05 02:14:28 +00:00
|
|
|
PatternMatch.cpp
|
2012-07-15 23:45:24 +00:00
|
|
|
TypeBuilderTest.cpp
|
2012-08-04 09:52:39 +00:00
|
|
|
TypesTest.cpp
|
2012-06-21 09:51:26 +00:00
|
|
|
ValueMapTest.cpp
|
2013-04-12 08:33:11 +00:00
|
|
|
ValueTest.cpp
|
2012-06-21 09:51:26 +00:00
|
|
|
VerifierTest.cpp
|
2012-11-12 10:01:17 +00:00
|
|
|
WaymarkTest.cpp
|
2012-06-21 09:51:26 +00: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 15:35:46 +00:00
|
|
|
list(REMOVE_ITEM IRSources ValueMapTest.cpp)
|
2012-06-21 09:51:26 +00:00
|
|
|
endif()
|
|
|
|
|
2012-06-21 22:17:39 +00: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 15:35:46 +00:00
|
|
|
add_llvm_unittest(IRTests
|
|
|
|
${IRSources}
|
2012-06-21 09:51:26 +00:00
|
|
|
)
|