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@11633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-02-19 20:32:39 +00:00
parent f73b4ca7f9
commit 364d1203e7
6 changed files with 10 additions and 1 deletions
+2
View File
@@ -20,6 +20,7 @@
#include "llvm/ExecutionEngine/ExecutionEngine.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "Support/CommandLine.h"
#include "Support/Signals.h"
using namespace llvm;
@@ -46,6 +47,7 @@ namespace {
int main(int argc, char **argv, char * const *envp) {
cl::ParseCommandLineOptions(argc, argv,
" llvm interpreter & dynamic compiler\n");
PrintStackTraceOnErrorSignal();
// Load the bytecode...
std::string ErrorMsg;