[PM] Rename this source file to something a bit more generic before
[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   DiagnosticInfo.cpp
10   DiagnosticPrinter.cpp
11   DIBuilder.cpp
12   DataLayout.cpp
13   DebugInfo.cpp
14   DebugLoc.cpp
15   Dominators.cpp
16   Function.cpp
17   GCOV.cpp
18   GVMaterializer.cpp
19   Globals.cpp
20   IRBuilder.cpp
21   IRPrintingPasses.cpp
22   InlineAsm.cpp
23   Instruction.cpp
24   Instructions.cpp
25   IntrinsicInst.cpp
26   LLVMContext.cpp
27   LLVMContextImpl.cpp
28   LeakDetector.cpp
29   LegacyPassManager.cpp
30   Mangler.cpp
31   Metadata.cpp
32   Module.cpp
33   Pass.cpp
34   PassManager.cpp
35   PassRegistry.cpp
36   Type.cpp
37   TypeFinder.cpp
38   Use.cpp
39   User.cpp
40   Value.cpp
41   ValueSymbolTable.cpp
42   ValueTypes.cpp
43   Verifier.cpp
44   )
45
46 # Workaround: It takes over 20 minutes to compile with msvc10.
47 # FIXME: Suppressing optimizations to core libraries would not be good thing.
48 if( MSVC_VERSION LESS 1700 )
49 set_property(
50   SOURCE Function.cpp
51   PROPERTY COMPILE_FLAGS "/Og-"
52   )
53 endif()
54
55 add_dependencies(LLVMCore intrinsics_gen)