X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FIR%2FCMakeLists.txt;h=40b4ec65e22be14bf17be2e405468444c4f4da63;hb=2921ff9ffcfd09db1c8d304188739d8d89de5611;hp=b825583bf370afa1abf433d687d0ae617b3e05a6;hpb=de262fecd2f4eeb266b67eaaed783cfc52f88b5f;p=oota-llvm.git diff --git a/lib/IR/CMakeLists.txt b/lib/IR/CMakeLists.txt index b825583bf37..40b4ec65e22 100644 --- a/lib/IR/CMakeLists.txt +++ b/lib/IR/CMakeLists.txt @@ -1,37 +1,48 @@ +set(LLVM_TARGET_DEFINITIONS AttributesCompatFunc.td) +tablegen(LLVM AttributesCompatFunc.inc -gen-attrs) +add_public_tablegen_target(AttributeCompatFuncTableGen) + add_llvm_library(LLVMCore AsmWriter.cpp Attributes.cpp AutoUpgrade.cpp BasicBlock.cpp + Comdat.cpp ConstantFold.cpp + ConstantRange.cpp Constants.cpp Core.cpp - DiagnosticInfo.cpp - DiagnosticPrinter.cpp DIBuilder.cpp DataLayout.cpp DebugInfo.cpp + DebugInfoMetadata.cpp DebugLoc.cpp + DiagnosticInfo.cpp + DiagnosticPrinter.cpp Dominators.cpp Function.cpp GCOV.cpp GVMaterializer.cpp Globals.cpp IRBuilder.cpp + IRPrintingPasses.cpp InlineAsm.cpp Instruction.cpp Instructions.cpp IntrinsicInst.cpp LLVMContext.cpp LLVMContextImpl.cpp - LeakDetector.cpp LegacyPassManager.cpp + MDBuilder.cpp + Mangler.cpp Metadata.cpp Module.cpp + Operator.cpp Pass.cpp PassManager.cpp PassRegistry.cpp - PrintModulePass.cpp + Statepoint.cpp + FunctionInfo.cpp Type.cpp TypeFinder.cpp Use.cpp @@ -40,15 +51,17 @@ add_llvm_library(LLVMCore ValueSymbolTable.cpp ValueTypes.cpp Verifier.cpp - ) -# Workaround: It takes over 20 minutes to compile with msvc10. -# FIXME: Suppressing optimizations to core libraries would not be good thing. -if( MSVC_VERSION LESS 1700 ) -set_property( - SOURCE Function.cpp - PROPERTY COMPILE_FLAGS "/Og-" + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/IR ) + +# PR24785: Workaround for hanging compilation. +if( MSVC_VERSION EQUAL 1800) + set_property( + SOURCE Function.cpp + PROPERTY COMPILE_FLAGS "/Og-" + ) endif() add_dependencies(LLVMCore intrinsics_gen)