blob: 347ec2cd01e1429d8488efa33aea74f6d77ac693 [file] [log] [blame]
Evan Cheng2129f592011-07-19 06:37:02 +00001//===-- 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"
16using namespace llvm;
17
Jim Grosbach4c98cf72015-05-15 19:13:31 +000018void MCCodeGenInfo::initMCCodeGenInfo(Reloc::Model RM, CodeModel::Model CM,
Evan Chengecb29082011-11-16 08:38:26 +000019 CodeGenOpt::Level OL) {
Evan Cheng2129f592011-07-19 06:37:02 +000020 RelocationModel = RM;
Evan Chengefd9b422011-07-20 07:51:56 +000021 CMModel = CM;
Evan Chengecb29082011-11-16 08:38:26 +000022 OptLevel = OL;
Evan Cheng2129f592011-07-19 06:37:02 +000023}