summaryrefslogtreecommitdiff
path: root/tools/bugpoint/bugpoint.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-19 20:33:00 +0000
committerChris Lattner <sabre@nondot.org>2004-02-19 20:33:00 +0000
commit3733f3be73e1034bc2fb6201a3d5657011fe725b (patch)
treee93156e5fc5a1e463a9032ba7e148e772210f031 /tools/bugpoint/bugpoint.cpp
parent364d1203e7adaededf3c01f58bd968ee61f4a316 (diff)
downloadllvm-3733f3be73e1034bc2fb6201a3d5657011fe725b.tar.gz
llvm-3733f3be73e1034bc2fb6201a3d5657011fe725b.tar.bz2
llvm-3733f3be73e1034bc2fb6201a3d5657011fe725b.tar.xz
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@11634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/bugpoint.cpp')
-rw-r--r--tools/bugpoint/bugpoint.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bugpoint/bugpoint.cpp b/tools/bugpoint/bugpoint.cpp
index 65de9658a7..318e80ffb3 100644
--- a/tools/bugpoint/bugpoint.cpp
+++ b/tools/bugpoint/bugpoint.cpp
@@ -17,6 +17,7 @@
#include "llvm/Support/PassNameParser.h"
#include "llvm/Support/ToolRunner.h"
#include "Support/CommandLine.h"
+#include "Support/Signals.h"
#include "Config/unistd.h"
#include <sys/resource.h>
using namespace llvm;
@@ -36,6 +37,7 @@ int main(int argc, char **argv) {
" LLVM automatic testcase reducer. See\nhttp://"
"llvm.cs.uiuc.edu/docs/CommandGuide/bugpoint.html"
" for more information.\n");
+ PrintStackTraceOnErrorSignal();
BugDriver D(argv[0]);
if (D.addSources(InputFilenames)) return 1;