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