diff options
Diffstat (limited to 'tools/opt')
-rw-r--r-- | tools/opt/opt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 5c61549d75..0602289aa6 100644 --- a/tools/opt/opt.cpp +++ b/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()); |