aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCCodeGenInfo.cpp
blob: d9dcfd0614bcb651f0416fc46833a3dca98ed4ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//===-- 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;
}