[llvm-branch-commits] [llvm-branch] r70450 - /llvm/branches/Apple/Dib/tools/llc/llc.cpp
Bill Wendling
isanbard at gmail.com
Wed Apr 29 16:47:48 PDT 2009
Author: void
Date: Wed Apr 29 18:47:46 2009
New Revision: 70450
URL: http://llvm.org/viewvc/llvm-project?rev=70450&view=rev
Log:
Error out with bad optimization level specified.
Modified:
llvm/branches/Apple/Dib/tools/llc/llc.cpp
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=70450&r1=70449&r2=70450&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/tools/llc/llc.cpp (original)
+++ llvm/branches/Apple/Dib/tools/llc/llc.cpp Wed Apr 29 18:47: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. Similar to llvm-gcc -O."),
+ cl::desc("Optimization level. [-O0, -O1, -O2, -Os, or -O3]"),
cl::Prefix,
cl::ZeroOrMore,
cl::init(' '));
@@ -257,6 +257,8 @@
switch (OptLevel) {
default:
+ std::cerr << argv[0] << ": invalid optimization level.\n";
+ return 1;
case ' ': break;
case '0': OLvl = CodeGenOpt::None; break;
case '1': OLvl = CodeGenOpt::One; break;
More information about the llvm-branch-commits
mailing list