summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccld/GenerateCode.cpp
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2006-11-21 22:50:24 +0000
committerJohn Criswell <criswell@uiuc.edu>2006-11-21 22:50:24 +0000
commitdffef2d2f59c4312f5586d02f32087752b746b9f (patch)
treea7cb751f5e1fda442800b1d36cd305fe7507d353 /llvm/tools/gccld/GenerateCode.cpp
parentec45a4c88cff43ba8f308cf4c4cf7c3be38d5619 (diff)
downloadbcm5719-llvm-dffef2d2f59c4312f5586d02f32087752b746b9f.tar.gz
bcm5719-llvm-dffef2d2f59c4312f5586d02f32087752b746b9f.zip
Added the --disable-compression option which controls whether the
generated bytecode uses compression. llvm-svn: 31891
Diffstat (limited to 'llvm/tools/gccld/GenerateCode.cpp')
-rw-r--r--llvm/tools/gccld/GenerateCode.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/gccld/GenerateCode.cpp b/llvm/tools/gccld/GenerateCode.cpp
index 2e81d38aac6..4053a89895e 100644
--- a/llvm/tools/gccld/GenerateCode.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud