Add a new option to disable stripping of bytecode files
authorChris Lattner <sabre@nondot.org>
Mon, 28 Apr 2003 03:28:56 +0000 (03:28 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Apr 2003 03:28:56 +0000 (03:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5969 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llc/llc.cpp

index 85e4150141511680aa740d5407c0ff3ae4d2da34..29449f5cfe3ebf79f58f7ddbd9616227e5e697e7 100644 (file)
@@ -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;