[llvm-commits] CVS: llvm/tools/extract/extract.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Feb 19 15:08:33 PST 2004
Changes in directory llvm/tools/extract:
extract.cpp updated: 1.20 -> 1.21
---
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/extract/extract.cpp
diff -u llvm/tools/extract/extract.cpp:1.20 llvm/tools/extract/extract.cpp:1.21
--- llvm/tools/extract/extract.cpp:1.20 Wed Feb 18 10:53:59 2004
+++ llvm/tools/extract/extract.cpp Thu Feb 19 14:32:39 2004
@@ -19,6 +19,7 @@
#include "llvm/Transforms/IPO.h"
#include "llvm/Target/TargetData.h"
#include "Support/CommandLine.h"
+#include "Support/Signals.h"
#include <memory>
#include <fstream>
using namespace llvm;
@@ -42,6 +43,7 @@
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv, " llvm extractor\n");
+ PrintStackTraceOnErrorSignal();
std::auto_ptr<Module> M(ParseBytecodeFile(InputFilename));
if (M.get() == 0) {
More information about the llvm-commits
mailing list