mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Added the --disable-compression option which controls whether the
generated bytecode uses compression. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
13c654a42a
commit
d452599f6f
@ -40,6 +40,10 @@ namespace {
|
||||
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 @@ int llvm::GenerateBytecode(Module *M, int StripLevel, bool Internalize,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user