aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-28 03:28:56 +0000
committerChris Lattner <sabre@nondot.org>2003-04-28 03:28:56 +0000
commit68492725a08ca3b356f24b90cdfc57a247abbeb3 (patch)
treed7e8b3ebf3cab62c11ec8385adbc607ac7aff176 /tools
parent95549281ecfcb99127cf0c18d4944900f54a9446 (diff)
downloadexternal_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')
-rw-r--r--tools/llc/llc.cpp7
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;