• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1set(LLVM_LINK_COMPONENTS
2  asmparser
3  core
4  ipa
5  )
6
7set(IRSources
8  AttributesTest.cpp
9  ConstantsTest.cpp
10  DominatorTreeTest.cpp
11  IRBuilderTest.cpp
12  InstructionsTest.cpp
13  MDBuilderTest.cpp
14  MetadataTest.cpp
15  PassManagerTest.cpp
16  TypeBuilderTest.cpp
17  TypesTest.cpp
18  ValueMapTest.cpp
19  VerifierTest.cpp
20  WaymarkTest.cpp
21  )
22
23# MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
24# See issue#331418 in Visual Studio.
25if(MSVC AND MSVC_VERSION LESS 1600)
26  list(REMOVE_ITEM IRSources ValueMapTest.cpp)
27endif()
28
29# HACK: Declare a couple of source files as optionally compiled to satisfy the
30# missing-file-checker in LLVM's weird CMake build.
31set(LLVM_OPTIONAL_SOURCES
32  ValueMapTest.cpp
33  )
34
35add_llvm_unittest(IRTests
36  ${IRSources}
37  )
38