set(LLVM_REQUIRES_RTTI 1)

add_llvm_library(LLVMCore
  AsmWriter.cpp
  Attributes.cpp
  AutoUpgrade.cpp
  BasicBlock.cpp
  ConstantFold.cpp
  Constants.cpp
  Core.cpp
  DebugInfo.cpp
  DebugLoc.cpp
  DIBuilder.cpp
  Dominators.cpp
  Function.cpp
  GCOV.cpp
  GVMaterializer.cpp
  Globals.cpp
  IRBuilder.cpp
  InlineAsm.cpp
  Instruction.cpp
  Instructions.cpp
  IntrinsicInst.cpp
  LLVMContext.cpp
  LLVMContextImpl.cpp
  LeakDetector.cpp
  Metadata.cpp
  Module.cpp
  Pass.cpp
  PassManager.cpp
  PassRegistry.cpp
  PrintModulePass.cpp
  Type.cpp
  TypeFinder.cpp
  Use.cpp
  User.cpp
  Value.cpp
  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 EQUAL 1600 )
set_property(
  SOURCE Function.cpp
  PROPERTY COMPILE_FLAGS "/Og-"
  )
endif()

add_dependencies(LLVMCore intrinsics_gen)

set(LLVM_REQUIRES_RTTI 1)

add_llvm_library(LLVMCore
  AsmWriter.cpp
  Attributes.cpp
  AutoUpgrade.cpp
  BasicBlock.cpp
  ConstantFold.cpp
  Constants.cpp
  Core.cpp
  DebugInfo.cpp
  DebugLoc.cpp
  DIBuilder.cpp
  Dominators.cpp
  Function.cpp
  GCOV.cpp
  GVMaterializer.cpp
  Globals.cpp
  IRBuilder.cpp
  InlineAsm.cpp
  Instruction.cpp
  Instructions.cpp
  IntrinsicInst.cpp
  LLVMContext.cpp
  LLVMContextImpl.cpp
  LeakDetector.cpp
  Metadata.cpp
  Module.cpp
  Pass.cpp
  PassManager.cpp
  PassRegistry.cpp
  PrintModulePass.cpp
  Type.cpp
  TypeFinder.cpp
  Use.cpp
  User.cpp
  Value.cpp
  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-"
  )
endif()

add_dependencies(LLVMCore intrinsics_gen)

Apply "/Og-" also to MSC15(aka VS9) on VMCore/Function.cpp.
Apply "/Og-" also to MSC15(aka VS9) on VMCore/Function.cpp.

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@162917 91177308-0d34-0410-b5e6-96231b3b80d8
