diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-04-29 23:40:42 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-04-29 23:40:42 +0000 |
commit | b8cb0bb08c7f9f2dfcdfa5f7d72a4c56a9c93228 (patch) | |
tree | 17d1e4d3cf368c1c53a3926cce306c746a2006b2 | |
parent | 98a366d547772010e94609e4584489b3e5ce0043 (diff) | |
download | external_llvm-b8cb0bb08c7f9f2dfcdfa5f7d72a4c56a9c93228.zip external_llvm-b8cb0bb08c7f9f2dfcdfa5f7d72a4c56a9c93228.tar.gz external_llvm-b8cb0bb08c7f9f2dfcdfa5f7d72a4c56a9c93228.tar.bz2 |
Remove LTO optimization level.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70445 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetMachine.h | 3 | ||||
-rw-r--r-- | tools/llc/llc.cpp | 1 | ||||
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 8afd71f..771f52b 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -76,8 +76,7 @@ namespace CodeGenOpt { One, Two, Size, - Aggressive, - LTO + Aggressive }; } diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index cf58384..bb49d32 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -263,7 +263,6 @@ int main(int argc, char **argv) { case '2': OLvl = CodeGenOpt::Two; break; case 's': OLvl = CodeGenOpt::Size; break; case '3': OLvl = CodeGenOpt::Aggressive; break; - case '4': OLvl = CodeGenOpt::LTO; break; } // If this target requires addPassesToEmitWholeFile, do it now. This is diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index 66b56b1..70744c9 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -443,7 +443,7 @@ bool LTOCodeGenerator::generateAssemblyCode(raw_ostream& out, switch (_target->addPassesToEmitFile(*codeGenPasses, out, TargetMachine::AssemblyFile, - CodeGenOpt::Default)) { + CodeGenOpt::Aggressive)) { case FileModel::MachOFile: mce = AddMachOWriter(*codeGenPasses, out, *_target); break; @@ -459,7 +459,7 @@ bool LTOCodeGenerator::generateAssemblyCode(raw_ostream& out, } if (_target->addPassesToEmitFileFinish(*codeGenPasses, mce, - CodeGenOpt::Default)) { + CodeGenOpt::Aggressive)) { errMsg = "target does not support generation of this file type"; return true; } |