2ad5fdb25be1aa603d1acbbede23a29a84604d13
[oota-llvm.git] / lib / IR / CMakeLists.txt
1 add_llvm_library(LLVMCore
2   AsmWriter.cpp
3   Attributes.cpp
4   AutoUpgrade.cpp
5   BasicBlock.cpp
6   ConstantFold.cpp
7   Constants.cpp
8   Core.cpp
9   DIBuilder.cpp
10   DataLayout.cpp
11   DebugInfo.cpp
12   DebugLoc.cpp
13   Dominators.cpp
14   Function.cpp
15   GCOV.cpp
16   GVMaterializer.cpp
17   Globals.cpp
18   IRBuilder.cpp
19   InlineAsm.cpp
20   Instruction.cpp
21   Instructions.cpp
22   IntrinsicInst.cpp
23   LLVMContext.cpp
24   LLVMContextImpl.cpp
25   LeakDetector.cpp
26   LegacyPassManager.cpp
27   Metadata.cpp
28   Module.cpp
29   Pass.cpp
30   PassRegistry.cpp
31   PrintModulePass.cpp
32   Type.cpp
33   TypeFinder.cpp
34   Use.cpp
35   User.cpp
36   Value.cpp
37   ValueSymbolTable.cpp
38   ValueTypes.cpp
39   Verifier.cpp
40   )
41
42 # Workaround: It takes over 20 minutes to compile with msvc10.
43 # FIXME: Suppressing optimizations to core libraries would not be good thing.
44 if( MSVC_VERSION LESS 1700 )
45 set_property(
46   SOURCE Function.cpp
47   PROPERTY COMPILE_FLAGS "/Og-"
48   )
49 endif()
50
51 add_dependencies(LLVMCore intrinsics_gen)