[llvm-commits] CVS: llvm/tools/llvm-link/llvm-link.cpp
Reid Spencer
reid at x10sys.com
Sat Nov 6 21:41:43 PST 2004
Changes in directory llvm/tools/llvm-link:
llvm-link.cpp updated: 1.46 -> 1.47
---
Log message:
* Enable bytecode compression by default
* Provide a -no-compress option to defeat compression.
---
Diffs of the changes: (+4 -1)
Index: llvm/tools/llvm-link/llvm-link.cpp
diff -u llvm/tools/llvm-link/llvm-link.cpp:1.46 llvm/tools/llvm-link/llvm-link.cpp:1.47
--- llvm/tools/llvm-link/llvm-link.cpp:1.46 Fri Nov 5 16:15:36 2004
+++ llvm/tools/llvm-link/llvm-link.cpp Sat Nov 6 23:41:32 2004
@@ -42,6 +42,9 @@
static cl::opt<bool>
DumpAsm("d", cl::desc("Print assembly as linked"), cl::Hidden);
+static cl::opt<bool> NoCompress("no-compress", cl::init(false),
+ cl::desc("Don't ompress the generated bytecode"));
+
// LoadFile - Read the specified bytecode file in and return it. This routine
// searches the link path for the specified file to try to find it...
//
@@ -134,7 +137,7 @@
}
if (Verbose) std::cerr << "Writing bytecode...\n";
- WriteBytecodeToFile(Composite.get(), *Out);
+ WriteBytecodeToFile(Composite.get(), *Out, !NoCompress);
if (Out != &std::cout) delete Out;
return 0;
More information about the llvm-commits
mailing list