[llvm-commits] CVS: llvm/tools/opt/opt.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 28 10:32:09 PDT 2006
Changes in directory llvm/tools/opt:
opt.cpp updated: 1.117 -> 1.118
---
Log message:
Add a --disable-compression option like llvm-link/llvm-as etc have
---
Diffs of the changes: (+3 -1)
opt.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.117 llvm/tools/opt/opt.cpp:1.118
--- llvm/tools/opt/opt.cpp:1.117 Sun Aug 27 17:40:26 2006
+++ llvm/tools/opt/opt.cpp Mon Aug 28 12:31:55 2006
@@ -38,6 +38,8 @@
static cl::list<const PassInfo*, bool, PassNameParser>
PassList(cl::desc("Optimizations available:"));
+static cl::opt<bool> NoCompress("disable-compression", cl::init(false),
+ cl::desc("Don't compress the generated bytecode"));
// Other command line options...
//
@@ -250,7 +252,7 @@
// Write bytecode out to disk or cout as the last step...
if (!NoOutput && !AnalyzeOnly)
- Passes.add(new WriteBytecodePass(Out, Out != &std::cout));
+ Passes.add(new WriteBytecodePass(Out, Out != &std::cout, !NoCompress));
// Now that we have all of the passes ready, run them.
Passes.run(*M.get());
More information about the llvm-commits
mailing list