[llvm-branch-commits] [llvm-branch] r70448 - in /llvm/branches/Apple/Dib: include/llvm/Target/TargetMachine.h tools/llc/llc.cpp tools/lto/LTOCodeGenerator.cpp
Bill Wendling
isanbard at gmail.com
Wed Apr 29 16:41:56 PDT 2009
Author: void
Date: Wed Apr 29 18:41:55 2009
New Revision: 70448
URL: http://llvm.org/viewvc/llvm-project?rev=70448&view=rev
Log:
Remove LTO optimization level.
Modified:
llvm/branches/Apple/Dib/include/llvm/Target/TargetMachine.h
llvm/branches/Apple/Dib/tools/llc/llc.cpp
llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp
Modified: llvm/branches/Apple/Dib/include/llvm/Target/TargetMachine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/include/llvm/Target/TargetMachine.h?rev=70448&r1=70447&r2=70448&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/include/llvm/Target/TargetMachine.h (original)
+++ llvm/branches/Apple/Dib/include/llvm/Target/TargetMachine.h Wed Apr 29 18:41:55 2009
@@ -76,8 +76,7 @@
One,
Two,
Size,
- Aggressive,
- LTO
+ Aggressive
};
}
Modified: llvm/branches/Apple/Dib/tools/llc/llc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/tools/llc/llc.cpp?rev=70448&r1=70447&r2=70448&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/tools/llc/llc.cpp (original)
+++ llvm/branches/Apple/Dib/tools/llc/llc.cpp Wed Apr 29 18:41:55 2009
@@ -263,7 +263,6 @@
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
Modified: llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp?rev=70448&r1=70447&r2=70448&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/branches/Apple/Dib/tools/lto/LTOCodeGenerator.cpp Wed Apr 29 18:41:55 2009
@@ -443,7 +443,7 @@
switch (_target->addPassesToEmitFile(*codeGenPasses, out,
TargetMachine::AssemblyFile,
- CodeGenOpt::Default)) {
+ CodeGenOpt::Aggressive)) {
case FileModel::MachOFile:
mce = AddMachOWriter(*codeGenPasses, out, *_target);
break;
@@ -459,7 +459,7 @@
}
if (_target->addPassesToEmitFileFinish(*codeGenPasses, mce,
- CodeGenOpt::Default)) {
+ CodeGenOpt::Aggressive)) {
errMsg = "target does not support generation of this file type";
return true;
}
More information about the llvm-branch-commits
mailing list