Teach ISel not to optimize 'optnone' functions.

Based on work by Andrea Di Biagio.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Paul Robinson
2013-11-21 06:33:32 +00:00
parent 397afeb1fb
commit 6079f00035
5 changed files with 84 additions and 2 deletions

View File

@ -164,6 +164,11 @@ CodeGenOpt::Level TargetMachine::getOptLevel() const {
return CodeGenInfo->getOptLevel();
}
void TargetMachine::setOptLevel(CodeGenOpt::Level Level) const {
if (CodeGenInfo)
CodeGenInfo->setOptLevel(Level);
}
bool TargetMachine::getAsmVerbosityDefault() {
return AsmVerbosityDefault;
}