From f73b4ca7f9c5e4a19c3fba9fa0280768b4c64891 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 19 Feb 2004 20:32:12 +0000 Subject: Make sure to print a stack trace whenever an error signal is delivered to the tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11632 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-prof/llvm-prof.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/llvm-prof/llvm-prof.cpp') diff --git a/tools/llvm-prof/llvm-prof.cpp b/tools/llvm-prof/llvm-prof.cpp index 3c9c3906ff..2a7789dcd5 100644 --- a/tools/llvm-prof/llvm-prof.cpp +++ b/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 #include #include @@ -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; -- cgit v1.2.3-18-g5258