summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-28 17:31:55 +0000
committerChris Lattner <sabre@nondot.org>2006-08-28 17:31:55 +0000
commit29619a9a010078a10d204f823ae14ce854576e2c (patch)
tree3cd3cc2ad59de0426d75cd647b2e57bca18917cd
parent16c203e7c66252ea443a452cdc9716ecfde03c18 (diff)
downloadbcm5719-llvm-29619a9a010078a10d204f823ae14ce854576e2c.tar.gz
bcm5719-llvm-29619a9a010078a10d204f823ae14ce854576e2c.zip
Add a --disable-compression option like llvm-link/llvm-as etc have
llvm-svn: 29941
-rw-r--r--llvm/tools/opt/opt.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 5c61549d75e..0602289aa67 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -38,6 +38,8 @@ using namespace llvm;
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 @@ int main(int argc, char **argv) {
// 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());
OpenPOWER on IntegriCloud