LLVM API Documentation
00001 //===-- MCCodeGenInfo.cpp - Target CodeGen Info -----------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file tracks information about the target which can affect codegen, 00011 // asm parsing, and asm printing. For example, relocation model. 00012 // 00013 //===----------------------------------------------------------------------===// 00014 00015 #include "llvm/MC/MCCodeGenInfo.h" 00016 using namespace llvm; 00017 00018 void MCCodeGenInfo::InitMCCodeGenInfo(Reloc::Model RM, CodeModel::Model CM, 00019 CodeGenOpt::Level OL) { 00020 RelocationModel = RM; 00021 CMModel = CM; 00022 OptLevel = OL; 00023 }