Add support for compressed bytecode

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2004-11-06 23:17:23 +00:00
parent 2334e6d908
commit 17f52c5c46
5 changed files with 138 additions and 27 deletions

View File

@ -40,6 +40,9 @@ Force("f", cl::desc("Overwrite output files"));
static cl::opt<bool>
DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
static cl::opt<bool> Compress("compress", cl::Optional,
cl::desc("Compress the generated bytecode"));
static cl::opt<bool>
DisableVerify("disable-verify", cl::Hidden,
cl::desc("Do not run verifier on input LLVM (dangerous!)"));
@ -119,7 +122,7 @@ int main(int argc, char **argv) {
return 1;
}
WriteBytecodeToFile(M.get(), *Out);
WriteBytecodeToFile(M.get(), *Out, Compress);
} catch (const ParseException &E) {
std::cerr << argv[0] << ": " << E.getMessage() << "\n";
return 1;