aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/llvm-link/llvm-link.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp
index b1715a8..a07cd4b 100644
--- a/tools/llvm-link/llvm-link.cpp
+++ b/tools/llvm-link/llvm-link.cpp
@@ -42,6 +42,9 @@ Verbose("v", cl::desc("Print information about actions taken"));
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 @@ int main(int argc, char **argv) {
}
if (Verbose) std::cerr << "Writing bytecode...\n";
- WriteBytecodeToFile(Composite.get(), *Out);
+ WriteBytecodeToFile(Composite.get(), *Out, !NoCompress);
if (Out != &std::cout) delete Out;
return 0;