mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 06:40:53 +00:00
2b239cbcf6
and code model. This eliminates the need to pass OptLevel flag all over the place and makes it possible for any codegen pass to use this information. llvm-svn: 144788
24 lines
824 B
C++
24 lines
824 B
C++
//===-- 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;
|
|
|
|
void MCCodeGenInfo::InitMCCodeGenInfo(Reloc::Model RM, CodeModel::Model CM,
|
|
CodeGenOpt::Level OL) {
|
|
RelocationModel = RM;
|
|
CMModel = CM;
|
|
OptLevel = OL;
|
|
}
|