diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-08 17:37:04 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-08 17:37:04 +0000 |
commit | cc0bd565bb4f7432466b3c736370a09548ed9a9d (patch) | |
tree | deb3fd9375ee4d36ff7dd345b877425ed9450ae9 /tools/gccas/gccas.cpp | |
parent | ad768d7a1a7f5ac922cb7587bf7a318a37b4516f (diff) | |
download | external_llvm-cc0bd565bb4f7432466b3c736370a09548ed9a9d.zip external_llvm-cc0bd565bb4f7432466b3c736370a09548ed9a9d.tar.gz external_llvm-cc0bd565bb4f7432466b3c736370a09548ed9a9d.tar.bz2 |
Add a --disable-compression option to gccas so the default compression of
bytecode can be defeated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r-- | tools/gccas/gccas.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index fe9c9d4..3fa0cfa 100644 --- a/tools/gccas/gccas.cpp +++ b/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()); |