[llvm-commits] CVS: llvm/tools/llvm-prof/llvm-prof.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Feb 19 14:55:25 PST 2004
Changes in directory llvm/tools/llvm-prof:
llvm-prof.cpp updated: 1.17 -> 1.18
---
Log message:
Make sure to print a stack trace whenever an error signal is delivered to the
tool.
---
Diffs of the changes: (+2 -0)
Index: llvm/tools/llvm-prof/llvm-prof.cpp
diff -u llvm/tools/llvm-prof/llvm-prof.cpp:1.17 llvm/tools/llvm-prof/llvm-prof.cpp:1.18
--- llvm/tools/llvm-prof/llvm-prof.cpp:1.17 Tue Feb 10 23:56:07 2004
+++ llvm/tools/llvm-prof/llvm-prof.cpp Thu Feb 19 14:32:12 2004
@@ -18,6 +18,7 @@
#include "llvm/Analysis/ProfileInfoLoader.h"
#include "llvm/Bytecode/Reader.h"
#include "Support/CommandLine.h"
+#include "Support/Signals.h"
#include <cstdio>
#include <map>
#include <set>
@@ -80,6 +81,7 @@
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm profile dump decoder\n");
+ PrintStackTraceOnErrorSignal();
// Read in the bytecode file...
std::string ErrorMessage;
More information about the llvm-commits
mailing list