diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-11-07 05:41:32 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-11-07 05:41:32 +0000 |
commit | ae70fedfab7f5243fae243cd86ffdad7ff23526c (patch) | |
tree | 40443a228e758c3bd8b4229b01a2cd99b136adfe /tools/llvm-link/llvm-link.cpp | |
parent | cf0eb8deb543d4fe80d8348f6e11b01c5dfe641f (diff) |
* Enable bytecode compression by default
* Provide a -no-compress option to defeat compression.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-link/llvm-link.cpp')
-rw-r--r-- | tools/llvm-link/llvm-link.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp index b1715a8e27..a07cd4bf80 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; |