2
0

MCCodeGenInfo.cpp 824 B

1234567891011121314151617181920212223
  1. //===-- MCCodeGenInfo.cpp - Target CodeGen Info -----------------*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // This file tracks information about the target which can affect codegen,
  11. // asm parsing, and asm printing. For example, relocation model.
  12. //
  13. //===----------------------------------------------------------------------===//
  14. #include "llvm/MC/MCCodeGenInfo.h"
  15. using namespace llvm;
  16. void MCCodeGenInfo::initMCCodeGenInfo(Reloc::Model RM, CodeModel::Model CM,
  17. CodeGenOpt::Level OL) {
  18. RelocationModel = RM;
  19. CMModel = CM;
  20. OptLevel = OL;
  21. }