summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Process.cpp
diff options
context:
space:
mode:
authorLeny Kholodov <lkholodov@accesssoftek.com>2016-05-04 16:56:51 +0000
committerLeny Kholodov <lkholodov@accesssoftek.com>2016-05-04 16:56:51 +0000
commit1b73e66b5dcfac87eb344401a853b1f7808d9d8b (patch)
treebc18262e726f2c2425461cf839bb3d57252d2718 /llvm/lib/Support/Process.cpp
parentb034526853cf5902932273077f43752d9f2fa90c (diff)
downloadbcm5719-llvm-1b73e66b5dcfac87eb344401a853b1f7808d9d8b.tar.gz
bcm5719-llvm-1b73e66b5dcfac87eb344401a853b1f7808d9d8b.zip
[Support] Creation of minidump after compiler crash on Windows
In the current implementation compiler only prints stack trace to console after crash. This patch adds saving of minidump files which contain a useful subset of the information for further debugging. Differential Revision: http://reviews.llvm.org/D18216 llvm-svn: 268519
Diffstat (limited to 'llvm/lib/Support/Process.cpp')
-rw-r--r--llvm/lib/Support/Process.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp
index 6dcbb47e87d..290c30f4968 100644
--- a/llvm/lib/Support/Process.cpp
+++ b/llvm/lib/Support/Process.cpp
@@ -73,6 +73,13 @@ static const char colorcodes[2][2][8][10] = {
{ ALLCOLORS("4",""), ALLCOLORS("4","1;") }
};
+// This is set to true when Process::PreventCoreFiles() is called.
+static bool coreFilesPrevented = false;
+
+bool Process::AreCoreFilesPrevented() {
+ return coreFilesPrevented;
+}
+
// Include the platform-specific parts of this class.
#ifdef LLVM_ON_UNIX
#include "Unix/Process.inc"
OpenPOWER on IntegriCloud