set(LLVM_REQUIRES_RTTI 1)

add_llvm_library(LLVMCore
  AsmWriter.cpp
  Attributes.cpp
  AutoUpgrade.cpp
  BasicBlock.cpp
  ConstantFold.cpp
  Constants.cpp
  Core.cpp
  DebugInfoProbe.cpp
  DebugLoc.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
  Use.cpp
  User.cpp
  Value.cpp
  ValueSymbolTable.cpp
  ValueTypes.cpp
  Verifier.cpp
  )
