diff options
author | John Criswell <criswell@uiuc.edu> | 2006-11-21 22:50:24 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2006-11-21 22:50:24 +0000 |
commit | d452599f6f654398d9fa54bb32f1abf8dc70ca24 (patch) | |
tree | 8ee6804dc5d5fc9963cef74ca1af5a83c5a484b1 /tools | |
parent | 13c654a42a1ef4f04d0f19256e6265438c2f7d07 (diff) | |
download | external_llvm-d452599f6f654398d9fa54bb32f1abf8dc70ca24.zip external_llvm-d452599f6f654398d9fa54bb32f1abf8dc70ca24.tar.gz external_llvm-d452599f6f654398d9fa54bb32f1abf8dc70ca24.tar.bz2 |
Added the --disable-compression option which controls whether the
generated bytecode uses compression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index 2e81d38..4053a89 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -40,6 +40,10 @@ namespace { cl::opt<bool> DisableOptimizations("disable-opt", cl::desc("Do not run any optimization passes")); + + cl::opt<bool> + NoCompress("disable-compression", cl::init(false), + cl::desc("Don't compress the generated bytecode")); } /// CopyEnv - This function takes an array of environment variables and makes a @@ -280,7 +284,7 @@ int llvm::GenerateBytecode(Module *M, int StripLevel, bool Internalize, Passes.add(createVerifierPass()); // Add the pass that writes bytecode to the output file... - addPass(Passes, new WriteBytecodePass(Out)); + addPass(Passes, new WriteBytecodePass(Out, false, !NoCompress)); // Run our queue of passes all at once now, efficiently. Passes.run(*M); |