Add cmake option to disable minidumps, default it to off

Since crash dumping landed in r268519, May 2016, I have not once seen
anyone use an uploaded minidump to debug a compiler crash. Therefore,
I'm turning this off by default. The dumps clutter up user and buildbot
temp directories. Each file is only about 56KB, but it adds up.

In the context of clang, the extra line about the minidump confuses
users, when what we really want from them is the pre-processed source
code.

llvm-svn: 340185
diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp
index 3f5a9d7..b46edb1 100644
--- a/llvm/lib/Support/Process.cpp
+++ b/llvm/lib/Support/Process.cpp
@@ -15,6 +15,7 @@
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/Config/llvm-config.h"
+#include "llvm/Config/config.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Program.h"
@@ -86,7 +87,7 @@
 static bool coreFilesPrevented = false;
 
 bool Process::AreCoreFilesPrevented() {
-  return coreFilesPrevented;
+  return !LLVM_ENABLE_CRASH_DUMPS;
 }
 
 // Include the platform-specific parts of this class.