[llvm-commits] CVS: llvm/tools/llc/llc.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Apr 27 22:30:01 PDT 2003


Changes in directory llvm/tools/llc:

llc.cpp updated: 1.70 -> 1.71

---
Log message:

Add a new option to disable stripping of bytecode files


---
Diffs of the changes:

Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.70 llvm/tools/llc/llc.cpp:1.71
--- llvm/tools/llc/llc.cpp:1.70	Sat Apr 26 15:11:06 2003
+++ llvm/tools/llc/llc.cpp	Sun Apr 27 22:28:56 2003
@@ -50,6 +50,10 @@
 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 @@
     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;





More information about the llvm-commits mailing list