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