summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-04 21:41:39 +0000
committerChris Lattner <sabre@nondot.org>2009-03-04 21:41:39 +0000
commit07e85f3fc593b7c1be31ea23c6bdf3241380cef3 (patch)
tree4381635decb283c380f73076a4742805ebe1ae4b /clang
parent20fc207f52adc23e06ac47066f14d3913b16f2ad (diff)
downloadbcm5719-llvm-07e85f3fc593b7c1be31ea23c6bdf3241380cef3.tar.gz
bcm5719-llvm-07e85f3fc593b7c1be31ea23c6bdf3241380cef3.zip
Start making use of "pretty stack dumps" to get
better crash info when clang crashes. Step #2 of many. llvm-svn: 66078
Diffstat (limited to 'clang')
-rw-r--r--clang/Driver/clang.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index 87447c41532..5f8bb3618e4 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -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 @@ static bool isSerializedFile(const std::string& InFile) {
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");
OpenPOWER on IntegriCloud