aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llc
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-04-28 01:04:53 +0000
committerBill Wendling <isanbard@gmail.com>2009-04-28 01:04:53 +0000
commitc69d56f1154342a57c9bdd4c17a10333e3520127 (patch)
tree4793b96fe50eeb1b430040579bb4e2c61479942b /tools/llc
parent2e9d5f912a9841d3685ba0241abe1131943fed29 (diff)
downloadexternal_llvm-c69d56f1154342a57c9bdd4c17a10333e3520127.zip
external_llvm-c69d56f1154342a57c9bdd4c17a10333e3520127.tar.gz
external_llvm-c69d56f1154342a57c9bdd4c17a10333e3520127.tar.bz2
r70270 isn't ready yet. Back this out. Sorry for the noise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r--tools/llc/llc.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp
index eff3227..1b84d4d 100644
--- a/tools/llc/llc.cpp
+++ b/tools/llc/llc.cpp
@@ -55,13 +55,8 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"));
static cl::opt<bool> Force("f", cl::desc("Overwrite output files"));
-// Determine optimization level. Level -O0 is equivalent to "fast" code gen.
-static cl::opt<unsigned>
-OptLevel("O",
- cl::desc("Optimization level. Similar to llvm-gcc -O. (default: -O3)"),
- cl::Prefix,
- cl::ZeroOrMore,
- cl::init(3));
+static cl::opt<bool> Fast("fast",
+ cl::desc("Generate code quickly, potentially sacrificing code quality"));
static cl::opt<std::string>
TargetTriple("mtriple", cl::desc("Override target triple for module"));
@@ -262,7 +257,7 @@ int main(int argc, char **argv) {
PM.add(createVerifierPass());
// Ask the target to add backend passes as necessary.
- if (Target.addPassesToEmitWholeFile(PM, *Out, FileType, OptLevel)) {
+ if (Target.addPassesToEmitWholeFile(PM, *Out, FileType, Fast)) {
std::cerr << argv[0] << ": target does not support generation of this"
<< " file type!\n";
if (Out != &outs()) delete Out;
@@ -288,7 +283,7 @@ int main(int argc, char **argv) {
// Override default to generate verbose assembly.
Target.setAsmVerbosityDefault(true);
- switch (Target.addPassesToEmitFile(Passes, *Out, FileType, OptLevel)) {
+ switch (Target.addPassesToEmitFile(Passes, *Out, FileType, Fast)) {
default:
assert(0 && "Invalid file model!");
return 1;
@@ -309,7 +304,7 @@ int main(int argc, char **argv) {
break;
}
- if (Target.addPassesToEmitFileFinish(Passes, MCE, OptLevel)) {
+ if (Target.addPassesToEmitFileFinish(Passes, MCE, Fast)) {
std::cerr << argv[0] << ": target does not support generation of this"
<< " file type!\n";
if (Out != &outs()) delete Out;