[llvm-branch-commits] [llvm-branch] r70460 - in /llvm/branches/Apple/Dib: include/llvm/Target/TargetMachine.h tools/llc/llc.cpp
Bill Wendling
isanbard at gmail.com
Wed Apr 29 17:58:47 PDT 2009
Author: void
Date: Wed Apr 29 19:58:46 2009
New Revision: 70460
URL: http://llvm.org/viewvc/llvm-project?rev=70460&view=rev
Log:
Remove unused flags.
Modified:
llvm/branches/Apple/Dib/include/llvm/Target/TargetMachine.h
llvm/branches/Apple/Dib/tools/llc/llc.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=70460&r1=70459&r2=70460&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/include/llvm/Target/TargetMachine.h (original)
+++ llvm/branches/Apple/Dib/include/llvm/Target/TargetMachine.h Wed Apr 29 19:58:46 2009
@@ -73,9 +73,6 @@
enum Level {
Default,
None,
- One,
- Two,
- Size,
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=70460&r1=70459&r2=70460&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/tools/llc/llc.cpp (original)
+++ llvm/branches/Apple/Dib/tools/llc/llc.cpp Wed Apr 29 19:58:46 2009
@@ -58,7 +58,7 @@
// Determine optimization level. Level -O0 is equivalent to "fast" code gen.
static cl::opt<char>
OptLevel("O",
- cl::desc("Optimization level. [-O0, -O1, -O2, -Os, or -O3]"),
+ cl::desc("Optimization level. [-O0, -O1, -O2, or -O3]"),
cl::Prefix,
cl::ZeroOrMore,
cl::init(' '));
@@ -261,9 +261,8 @@
return 1;
case ' ': break;
case '0': OLvl = CodeGenOpt::None; break;
- case '1': OLvl = CodeGenOpt::One; break;
- case '2': OLvl = CodeGenOpt::Two; break;
- case 's': OLvl = CodeGenOpt::Size; break;
+ case '1':
+ case '2': OLvl = CodeGenOpt::Default; break;
case '3': OLvl = CodeGenOpt::Aggressive; break;
}
More information about the llvm-branch-commits
mailing list