[llvm-commits] CVS: llvm/tools/lli/lli.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Feb 19 14:58:33 PST 2004
Changes in directory llvm/tools/lli:
lli.cpp updated: 1.41 -> 1.42
---
Log message:
Make sure to print a stack trace whenever an error signal is delivered to
the tool.
---
Diffs of the changes: (+2 -0)
Index: llvm/tools/lli/lli.cpp
diff -u llvm/tools/lli/lli.cpp:1.41 llvm/tools/lli/lli.cpp:1.42
--- llvm/tools/lli/lli.cpp:1.41 Sun Dec 28 03:51:04 2003
+++ llvm/tools/lli/lli.cpp Thu Feb 19 14:32:37 2004
@@ -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 @@
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;
More information about the llvm-commits
mailing list