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

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 19 14:45:46 PST 2004


Changes in directory llvm/tools/llvm-ar:

llvm-ar.cpp updated: 1.10 -> 1.11

---
Log message:

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


---
Diffs of the changes:  (+3 -2)

Index: llvm/tools/llvm-ar/llvm-ar.cpp
diff -u llvm/tools/llvm-ar/llvm-ar.cpp:1.10 llvm/tools/llvm-ar/llvm-ar.cpp:1.11
--- llvm/tools/llvm-ar/llvm-ar.cpp:1.10	Tue Dec 30 01:45:46 2003
+++ llvm/tools/llvm-ar/llvm-ar.cpp	Thu Feb 19 14:32:12 2004
@@ -15,6 +15,7 @@
 #include "llvm/Bytecode/Reader.h"
 #include "Support/CommandLine.h"
 #include "Support/FileUtilities.h"
+#include "Support/Signals.h"
 #include <string>
 #include <fstream>
 #include <cstdio>
@@ -544,9 +545,9 @@
 }
 
 int main(int argc, char **argv) {
-
-  //Parse Command line options
   cl::ParseCommandLineOptions(argc, argv);
+  PrintStackTraceOnErrorSignal();
+
   parseCL();
 
   //Create archive!





More information about the llvm-commits mailing list