projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for Nuxi CloudABI.
[oota-llvm.git]
/
include
/
llvm
/
MC
/
MCCodeGenInfo.h
diff --git
a/include/llvm/MC/MCCodeGenInfo.h
b/include/llvm/MC/MCCodeGenInfo.h
index 1c54c47e2d95ba16c1f590138be91657df21c4b6..84ce934d822eeb0523bdc260bd0700955ff8273b 100644
(file)
--- a/
include/llvm/MC/MCCodeGenInfo.h
+++ b/
include/llvm/MC/MCCodeGenInfo.h
@@
-20,7
+20,7
@@
namespace llvm {
class MCCodeGenInfo {
namespace llvm {
class MCCodeGenInfo {
- /// RelocationModel - Relocation model: stat
c
ic, pic, etc.
+ /// RelocationModel - Relocation model: static, pic, etc.
///
Reloc::Model RelocationModel;
///
Reloc::Model RelocationModel;
@@
-28,13
+28,23
@@
namespace llvm {
///
CodeModel::Model CMModel;
///
CodeModel::Model CMModel;
+ /// OptLevel - Optimization level.
+ ///
+ CodeGenOpt::Level OptLevel;
+
public:
void InitMCCodeGenInfo(Reloc::Model RM = Reloc::Default,
public:
void InitMCCodeGenInfo(Reloc::Model RM = Reloc::Default,
- CodeModel::Model CM = CodeModel::Default);
+ CodeModel::Model CM = CodeModel::Default,
+ CodeGenOpt::Level OL = CodeGenOpt::Default);
Reloc::Model getRelocationModel() const { return RelocationModel; }
CodeModel::Model getCodeModel() const { return CMModel; }
Reloc::Model getRelocationModel() const { return RelocationModel; }
CodeModel::Model getCodeModel() const { return CMModel; }
+
+ CodeGenOpt::Level getOptLevel() const { return OptLevel; }
+
+ // Allow overriding OptLevel on a per-function basis.
+ void setOptLevel(CodeGenOpt::Level Level) { OptLevel = Level; }
};
} // namespace llvm
};
} // namespace llvm