mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add a new option to disable stripping of bytecode files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5969 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
95549281ec
commit
68492725a0
@ -49,6 +49,10 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"));
|
||||
|
||||
static cl::opt<bool> Force("f", cl::desc("Overwrite output files"));
|
||||
|
||||
static cl::opt<bool>
|
||||
DisableStrip("disable-strip",
|
||||
cl::desc("Do not strip the LLVM bytecode included in the executable"));
|
||||
|
||||
static cl::opt<bool>
|
||||
DumpAsm("d", cl::desc("Print bytecode before native code generation"),
|
||||
cl::Hidden);
|
||||
@ -227,7 +231,8 @@ main(int argc, char **argv)
|
||||
Passes.add(new PrintFunctionPass("Code after xformations: \n", &std::cerr));
|
||||
|
||||
// Strip all of the symbols from the bytecode so that it will be smaller...
|
||||
Passes.add(createSymbolStrippingPass());
|
||||
if (!DisableStrip)
|
||||
Passes.add(createSymbolStrippingPass());
|
||||
|
||||
// Figure out where we are going to send the output...
|
||||
std::ostream *Out = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user