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

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 19 14:52:16 PST 2004


Changes in directory llvm/tools/llvm-nm:

llvm-nm.cpp updated: 1.11 -> 1.12

---
Log message:

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


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

Index: llvm/tools/llvm-nm/llvm-nm.cpp
diff -u llvm/tools/llvm-nm/llvm-nm.cpp:1.11 llvm/tools/llvm-nm/llvm-nm.cpp:1.12
--- llvm/tools/llvm-nm/llvm-nm.cpp:1.11	Wed Nov 19 16:15:00 2003
+++ llvm/tools/llvm-nm/llvm-nm.cpp	Thu Feb 19 14:32:12 2004
@@ -20,6 +20,7 @@
 #include "llvm/Bytecode/Reader.h"
 #include "Support/CommandLine.h"
 #include "Support/FileUtilities.h"
+#include "Support/Signals.h"
 #include <cctype>
 #include <cstring>
 
@@ -146,6 +147,8 @@
 
 int main(int argc, char **argv) {
   cl::ParseCommandLineOptions(argc, argv, " llvm symbol table dumper\n");
+  PrintStackTraceOnErrorSignal();
+
   ToolName = argv[0];
   if (BSDFormat) OutputFormat = bsd;
   if (POSIXFormat) OutputFormat = posix;





More information about the llvm-commits mailing list