[llvm-commits] [llvm-gcc-4.2] r66249 - /llvm-gcc-4.2/trunk/gcc/llvm-main.cpp
Chris Lattner
sabre at nondot.org
Thu Mar 5 21:36:50 PST 2009
Author: lattner
Date: Thu Mar 5 23:36:49 2009
New Revision: 66249
URL: http://llvm.org/viewvc/llvm-project?rev=66249&view=rev
Log:
When/if llvm-gcc crashes, include the argv info in the output.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-main.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-main.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-main.cpp?rev=66249&r1=66248&r2=66249&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-main.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-main.cpp Thu Mar 5 23:36:49 2009
@@ -19,7 +19,7 @@
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
-#include <iostream>
+#include "llvm/Support/PrettyStackTrace.h"
extern "C" {
#include "config.h"
@@ -33,8 +33,7 @@
// We do this so that C++ code has its static constructors called as required.
//
-int
-main (int argc, char **argv)
-{
+int main (int argc, char **argv) {
+ llvm::PrettyStackTraceProgram X(argc, argv);
return toplev_main (argc, (const char **) argv);
}
More information about the llvm-commits
mailing list