From 01095a5d43bbfde13731688ddcf6048ebb8b7721 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 23 Jul 2016 20:41:05 +0000 Subject: Vendor import of llvm release_39 branch r276489: https://llvm.org/svn/llvm-project/llvm/branches/release_39@276489 --- lib/Support/Process.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/Support/Process.cpp') diff --git a/lib/Support/Process.cpp b/lib/Support/Process.cpp index 6dcbb47e87d0..290c30f4968f 100644 --- a/lib/Support/Process.cpp +++ b/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" -- cgit v1.2.3