| Evan Cheng | 2129f59 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 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 |  | 
|  | 15 | #include "llvm/MC/MCCodeGenInfo.h" | 
|  | 16 | using namespace llvm; | 
|  | 17 |  | 
| Evan Cheng | ecb2908 | 2011-11-16 08:38:26 +0000 | [diff] [blame] | 18 | void MCCodeGenInfo::InitMCCodeGenInfo(Reloc::Model RM, CodeModel::Model CM, | 
|  | 19 | CodeGenOpt::Level OL) { | 
| Evan Cheng | 2129f59 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 20 | RelocationModel = RM; | 
| Evan Cheng | efd9b42 | 2011-07-20 07:51:56 +0000 | [diff] [blame] | 21 | CMModel = CM; | 
| Evan Cheng | ecb2908 | 2011-11-16 08:38:26 +0000 | [diff] [blame] | 22 | OptLevel = OL; | 
| Evan Cheng | 2129f59 | 2011-07-19 06:37:02 +0000 | [diff] [blame] | 23 | } |