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

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 19 14:33:02 PST 2004


Changes in directory llvm/tools/opt:

opt.cpp updated: 1.87 -> 1.88

---
Log message:

Make sure to print a stack trace whenever an error signal is delivered to the
tool.


---
Diffs of the changes:  (+1 -0)

Index: llvm/tools/opt/opt.cpp
diff -u llvm/tools/opt/opt.cpp:1.87 llvm/tools/opt/opt.cpp:1.88
--- llvm/tools/opt/opt.cpp:1.87	Wed Dec 10 08:41:33 2003
+++ llvm/tools/opt/opt.cpp	Thu Feb 19 14:32:08 2004
@@ -72,6 +72,7 @@
 int main(int argc, char **argv) {
   cl::ParseCommandLineOptions(argc, argv,
 			      " llvm .bc -> .bc modular optimizer\n");
+  PrintStackTraceOnErrorSignal();
 
   // Allocate a full target machine description only if necessary...
   // FIXME: The choice of target should be controllable on the command line.





More information about the llvm-commits mailing list