diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-19 20:32:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-19 20:32:12 +0000 |
commit | 12439ffbacccb4919a106602cfca62b7a39d07a1 (patch) | |
tree | 63eb105eea28ee7e08a0e975f126a8aa89f090ad /llvm/tools/llvm-prof/llvm-prof.cpp | |
parent | b0bedfa4b2383667dbd63a2796800ae6884bb94e (diff) | |
download | bcm5719-llvm-12439ffbacccb4919a106602cfca62b7a39d07a1.tar.gz bcm5719-llvm-12439ffbacccb4919a106602cfca62b7a39d07a1.zip |
Make sure to print a stack trace whenever an error signal is delivered to the
tool.
llvm-svn: 11632
Diffstat (limited to 'llvm/tools/llvm-prof/llvm-prof.cpp')
-rw-r--r-- | llvm/tools/llvm-prof/llvm-prof.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-prof/llvm-prof.cpp b/llvm/tools/llvm-prof/llvm-prof.cpp index 3c9c3906ff3..2a7789dcd53 100644 --- a/llvm/tools/llvm-prof/llvm-prof.cpp +++ b/llvm/tools/llvm-prof/llvm-prof.cpp @@ -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 @@ namespace { int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, " llvm profile dump decoder\n"); + PrintStackTraceOnErrorSignal(); // Read in the bytecode file... std::string ErrorMessage; |