summaryrefslogtreecommitdiff
path: root/tools/lli/lli.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lli/lli.cpp')
-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;