projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
misched: Generate IsBuffered flag for machine resources.
[oota-llvm.git]
/
include
/
llvm
/
MC
/
MCCodeGenInfo.h
diff --git
a/include/llvm/MC/MCCodeGenInfo.h
b/include/llvm/MC/MCCodeGenInfo.h
index 908922a253a2fe67a323bd5e70f8e35c7c4396a2..d1765e1240a47c536126b13e4c48e26daccacc64 100644
(file)
--- a/
include/llvm/MC/MCCodeGenInfo.h
+++ b/
include/llvm/MC/MCCodeGenInfo.h
@@
-15,21
+15,33
@@
#ifndef LLVM_MC_MCCODEGENINFO_H
#define LLVM_MC_MCCODEGENINFO_H
#ifndef LLVM_MC_MCCODEGENINFO_H
#define LLVM_MC_MCCODEGENINFO_H
+#include "llvm/Support/CodeGen.h"
+
namespace llvm {
namespace llvm {
- // Relocation model types.
- namespace Reloc {
- enum Model { Default, Static, PIC_, DynamicNoPIC };
- }
class MCCodeGenInfo {
class MCCodeGenInfo {
- /// RelocationModel - Relocation model: stat
c
ic, pic, etc.
+ /// RelocationModel - Relocation model: static, pic, etc.
///
Reloc::Model RelocationModel;
///
Reloc::Model RelocationModel;
+ /// CMModel - Code model.
+ ///
+ CodeModel::Model CMModel;
+
+ /// OptLevel - Optimization level.
+ ///
+ CodeGenOpt::Level OptLevel;
+
public:
public:
- void InitMCCodeGenInfo(Reloc::Model RM = Reloc::Default);
+ void InitMCCodeGenInfo(Reloc::Model RM = Reloc::Default,
+ CodeModel::Model CM = CodeModel::Default,
+ CodeGenOpt::Level OL = CodeGenOpt::Default);
Reloc::Model getRelocationModel() const { return RelocationModel; }
Reloc::Model getRelocationModel() const { return RelocationModel; }
+
+ CodeModel::Model getCodeModel() const { return CMModel; }
+
+ CodeGenOpt::Level getOptLevel() const { return OptLevel; }
};
} // namespace llvm
};
} // namespace llvm