blob: b439d59dec7ba229a86f72f7f89356ef55c96723 [file] [log] [blame]
Chandler Carruth94d02512012-06-21 09:51:26 +00001set(LLVM_LINK_COMPONENTS
NAKAMURA Takumib5c4b8762013-12-10 11:13:32 +00002 Analysis
3 AsmParser
4 Core
5 IPA
6 Support
Chandler Carruth94d02512012-06-21 09:51:26 +00007 )
8
Chandler Carruth74b6a772013-01-07 15:35:46 +00009set(IRSources
Benjamin Kramer410780b2013-01-12 14:13:45 +000010 AttributesTest.cpp
Chandler Carruth8cd041e2014-03-04 12:24:34 +000011 ConstantRangeTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000012 ConstantsTest.cpp
13 DominatorTreeTest.cpp
Chandler Carruthebabadf2012-07-16 07:44:45 +000014 IRBuilderTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000015 InstructionsTest.cpp
Chandler Carruth4b6845c2014-03-04 12:46:06 +000016 LeakDetectorTest.cpp
Chandler Carruth7caea412013-11-09 12:26:54 +000017 LegacyPassManagerTest.cpp
Chandler Carruthec7ad652012-07-15 23:26:50 +000018 MDBuilderTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000019 MetadataTest.cpp
Chandler Carruth90a835d2013-11-09 13:09:08 +000020 PassManagerTest.cpp
Arnold Schwaighofereb4f2d62013-05-05 02:14:28 +000021 PatternMatch.cpp
Chandler Carruth36e2ecf2012-07-15 23:45:24 +000022 TypeBuilderTest.cpp
Benjamin Kramer6d29c292012-08-04 09:52:39 +000023 TypesTest.cpp
Chandler Carruth4c1b05f2014-04-17 09:07:50 +000024 UserTest.cpp
Chandler Carruth4220e9c2014-03-04 11:17:44 +000025 ValueHandleTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000026 ValueMapTest.cpp
Benjamin Kramereee73f52013-04-12 08:33:11 +000027 ValueTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000028 VerifierTest.cpp
Gabor Greiffea6a552012-11-12 10:01:17 +000029 WaymarkTest.cpp
Chandler Carruth94d02512012-06-21 09:51:26 +000030 )
31
NAKAMURA Takumie14e13d2012-06-21 22:17:39 +000032# 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
Chandler Carruth74b6a772013-01-07 15:35:46 +000038add_llvm_unittest(IRTests
39 ${IRSources}
Chandler Carruth94d02512012-06-21 09:51:26 +000040 )