diff options
Diffstat (limited to 'contrib/llvm/lib/Support/Process.cpp')
| -rw-r--r-- | contrib/llvm/lib/Support/Process.cpp | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/contrib/llvm/lib/Support/Process.cpp b/contrib/llvm/lib/Support/Process.cpp index 6dcbb47e87d0..290c30f4968f 100644 --- a/contrib/llvm/lib/Support/Process.cpp +++ b/contrib/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" | 
