From 731055e370c8cc748457d82e629a0ed1462b3648 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 8 Nov 2005 02:12:17 +0000 Subject: [PATCH] Add a new -fast option, which generates code quickly. llvm-svn: 24234 --- llvm/tools/llc/llc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index b365f2741d3d..e71a7b985dba 100644 --- a/llvm/tools/llc/llc.cpp +++ b/llvm/tools/llc/llc.cpp @@ -45,6 +45,10 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); static cl::opt Force("f", cl::desc("Overwrite output files")); +static cl::opt Fast("fast", + cl::desc("Generate code quickly, potentially sacrificing code quality")); + + static cl::opt MArch("march", cl::desc("Architecture to generate code for:")); @@ -228,7 +232,7 @@ int main(int argc, char **argv) { } // Ask the target to add backend passes as necessary. - if (Target.addPassesToEmitFile(Passes, *Out, FileType)) { + if (Target.addPassesToEmitFile(Passes, *Out, FileType, Fast)) { std::cerr << argv[0] << ": target '" << Target.getName() << "' does not support generation of this file type!\n"; if (Out != &std::cout) delete Out;