diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-28 03:28:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-28 03:28:56 +0000 |
commit | 68492725a08ca3b356f24b90cdfc57a247abbeb3 (patch) | |
tree | d7e8b3ebf3cab62c11ec8385adbc607ac7aff176 /tools/llc | |
parent | 95549281ecfcb99127cf0c18d4944900f54a9446 (diff) | |
download | external_llvm-68492725a08ca3b356f24b90cdfc57a247abbeb3.zip external_llvm-68492725a08ca3b356f24b90cdfc57a247abbeb3.tar.gz external_llvm-68492725a08ca3b356f24b90cdfc57a247abbeb3.tar.bz2 |
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
Diffstat (limited to 'tools/llc')
-rw-r--r-- | tools/llc/llc.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 85e4150..29449f5 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -50,6 +50,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; |