summaryrefslogtreecommitdiff
path: root/tools/lli
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-19 20:32:39 +0000
committerChris Lattner <sabre@nondot.org>2004-02-19 20:32:39 +0000
commit364d1203e7adaededf3c01f58bd968ee61f4a316 (patch)
treecaeb85f613a14b74669c85428fee9349bdef8256 /tools/lli
parentf73b4ca7f9c5e4a19c3fba9fa0280768b4c64891 (diff)
downloadllvm-364d1203e7adaededf3c01f58bd968ee61f4a316.tar.gz
llvm-364d1203e7adaededf3c01f58bd968ee61f4a316.tar.bz2
llvm-364d1203e7adaededf3c01f58bd968ee61f4a316.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@11633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r--tools/lli/lli.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 15bf500bba..96a1a34bfa 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -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;