1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

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

to the tool.

llvm-svn: 11634
This commit is contained in:
Chris Lattner 2004-02-19 20:33:00 +00:00
parent 3c9511b0ac
commit d4f7ef8b1e
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include "llvm/Analysis/Verifier.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Support/PassNameParser.h"
#include "Support/Signals.h"
#include "Support/Timer.h"
#include <algorithm>
@ -115,6 +116,7 @@ namespace {
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm analysis printer tool\n");
PrintStackTraceOnErrorSignal();
Module *CurMod = 0;
try {

View File

@ -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;