[llvm-commits] CVS: llvm/tools/gccld/GenerateCode.cpp

John Criswell criswell at cs.uiuc.edu
Tue Nov 21 14:50:51 PST 2006



Changes in directory llvm/tools/gccld:

GenerateCode.cpp updated: 1.63 -> 1.64
---
Log message:

Added the --disable-compression option which controls whether the
generated bytecode uses compression.


---
Diffs of the changes:  (+5 -1)

 GenerateCode.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.63 llvm/tools/gccld/GenerateCode.cpp:1.64
--- llvm/tools/gccld/GenerateCode.cpp:1.63	Sat Sep 23 19:08:16 2006
+++ llvm/tools/gccld/GenerateCode.cpp	Tue Nov 21 16:50:24 2006
@@ -40,6 +40,10 @@
   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 @@
   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);






More information about the llvm-commits mailing list