add_llvm_library(LLVMCodeGen
  AggressiveAntiDepBreaker.cpp
  Analysis.cpp
  BranchFolding.cpp
  CalcSpillWeights.cpp
  CallingConvLower.cpp
  CodePlacementOpt.cpp
  CriticalAntiDepBreaker.cpp
  DeadMachineInstructionElim.cpp
  DwarfEHPrepare.cpp
  ELFCodeEmitter.cpp
  ELFWriter.cpp
  GCMetadata.cpp
  GCMetadataPrinter.cpp
  GCStrategy.cpp
  IfConversion.cpp
  InlineSpiller.cpp
  IntrinsicLowering.cpp
  LLVMTargetMachine.cpp
  LatencyPriorityQueue.cpp
  LiveInterval.cpp
  LiveIntervalAnalysis.cpp
  LiveStackAnalysis.cpp
  LiveVariables.cpp
  LocalStackSlotAllocation.cpp
  LowerSubregs.cpp
  MachineBasicBlock.cpp
  MachineCSE.cpp
  MachineDominators.cpp
  MachineFunction.cpp
  MachineFunctionAnalysis.cpp
  MachineFunctionPass.cpp
  MachineFunctionPrinterPass.cpp
  MachineInstr.cpp
  MachineLICM.cpp
  MachineLoopInfo.cpp
  MachineModuleInfo.cpp
  MachineModuleInfoImpls.cpp
  MachinePassRegistry.cpp
  MachineRegisterInfo.cpp
  MachineSSAUpdater.cpp
  MachineSink.cpp
  MachineVerifier.cpp
  ObjectCodeEmitter.cpp
  OcamlGC.cpp
  OptimizePHIs.cpp
  PHIElimination.cpp
  Passes.cpp
  PeepholeOptimizer.cpp
  PostRAHazardRecognizer.cpp
  PostRASchedulerList.cpp
  PreAllocSplitting.cpp
  ProcessImplicitDefs.cpp
  PrologEpilogInserter.cpp
  PseudoSourceValue.cpp
  RegAllocFast.cpp
  RegAllocLinearScan.cpp
  RegAllocPBQP.cpp
  RegisterCoalescer.cpp
  RegisterScavenging.cpp
  RenderMachineFunction.cpp
  ScheduleDAG.cpp
  ScheduleDAGEmit.cpp
  ScheduleDAGInstrs.cpp
  ScheduleDAGPrinter.cpp
  ShadowStackGC.cpp
  ShrinkWrapping.cpp
  SimpleRegisterCoalescing.cpp
  SjLjEHPrepare.cpp
  SlotIndexes.cpp
  Spiller.cpp
  SplitKit.cpp
  Splitter.cpp
  StackProtector.cpp
  StackSlotColoring.cpp
  StrongPHIElimination.cpp
  TailDuplication.cpp
  TargetInstrInfoImpl.cpp
  TargetLoweringObjectFileImpl.cpp
  TwoAddressInstructionPass.cpp
  UnreachableBlockElim.cpp
  VirtRegMap.cpp
  VirtRegRewriter.cpp
  )

target_link_libraries (LLVMCodeGen LLVMCore LLVMScalarOpts)
