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
This commit is contained in:
Chris Lattner
2004-02-19 20:32:12 +00:00
parent 982774cbeb
commit f73b4ca7f9
8 changed files with 15 additions and 2 deletions

View File

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