From 364d1203e7adaededf3c01f58bd968ee61f4a316 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 19 Feb 2004 20:32:39 +0000 Subject: 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 --- tools/lli/lli.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/lli') 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; -- cgit v1.2.3