[cfe-commits] r66078 - /cfe/trunk/Driver/clang.cpp
Chris Lattner
sabre at nondot.org
Wed Mar 4 13:41:39 PST 2009
Author: lattner
Date: Wed Mar 4 15:41:39 2009
New Revision: 66078
URL: http://llvm.org/viewvc/llvm-project?rev=66078&view=rev
Log:
Start making use of "pretty stack dumps" to get
better crash info when clang crashes. Step #2 of many.
Modified:
cfe/trunk/Driver/clang.cpp
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=66078&r1=66077&r2=66078&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Wed Mar 4 15:41:39 2009
@@ -50,6 +50,7 @@
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/PluginLoader.h"
+#include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Timer.h"
#include "llvm/System/Host.h"
#include "llvm/System/Path.h"
@@ -1561,6 +1562,7 @@
int main(int argc, char **argv) {
llvm::cl::ParseCommandLineOptions(argc, argv, " llvm clang cfe\n");
llvm::sys::PrintStackTraceOnErrorSignal();
+ llvm::PrettyStackTraceProgram X(argc, argv);
if (TimeReport)
ClangFrontendTimer = new llvm::Timer("Clang front-end time");
More information about the cfe-commits
mailing list