summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-08 17:37:04 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-08 17:37:04 +0000
commit05d033159d328fcc30bcc1864923d26fb648a975 (patch)
treee6b8059508844672179d0a07bbcf127f930da70f /llvm/tools/gccas/gccas.cpp
parent4d910edf391a4f048d622febb22343c3c90b43b5 (diff)
downloadbcm5719-llvm-05d033159d328fcc30bcc1864923d26fb648a975.tar.gz
bcm5719-llvm-05d033159d328fcc30bcc1864923d26fb648a975.zip
Add a --disable-compression option to gccas so the default compression of
bytecode can be defeated. llvm-svn: 17626
Diffstat (limited to 'llvm/tools/gccas/gccas.cpp')
-rw-r--r--llvm/tools/gccas/gccas.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp
index fe9c9d4110a..3fa0cfa7dd4 100644
--- a/llvm/tools/gccas/gccas.cpp
+++ b/llvm/tools/gccas/gccas.cpp
@@ -49,6 +49,9 @@ namespace {
cl::opt<bool>
DisableDSE("disable-dse", cl::desc("Do not run dead store elimination"));
+ cl::opt<bool>
+ NoCompress("disable-compression", cl::init(false),
+ cl::desc("Don't ompress the generated bytecode"));
}
@@ -182,7 +185,7 @@ int main(int argc, char **argv) {
Passes.add(createVerifierPass());
// Write bytecode to file...
- Passes.add(new WriteBytecodePass(Out));
+ Passes.add(new WriteBytecodePass(Out,false,!NoCompress));
// Run our queue of passes all at once now, efficiently.
Passes.run(*M.get());
OpenPOWER on IntegriCloud