2011-07-19 08:37:02 +02:00
|
|
|
//===-- MCCodeGenInfo.cpp - Target CodeGen Info -----------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file tracks information about the target which can affect codegen,
|
|
|
|
// asm parsing, and asm printing. For example, relocation model.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCCodeGenInfo.h"
|
|
|
|
using namespace llvm;
|
|
|
|
|
2015-05-15 21:13:31 +02:00
|
|
|
void MCCodeGenInfo::initMCCodeGenInfo(Reloc::Model RM, CodeModel::Model CM,
|
2011-11-16 09:38:26 +01:00
|
|
|
CodeGenOpt::Level OL) {
|
2011-07-19 08:37:02 +02:00
|
|
|
RelocationModel = RM;
|
2011-07-20 09:51:56 +02:00
|
|
|
CMModel = CM;
|
2011-11-16 09:38:26 +01:00
|
|
|
OptLevel = OL;
|
2011-07-19 08:37:02 +02:00
|
|
|
}
|