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...
//
// 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());