summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-15 05:48:49 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-15 05:48:49 +0000
commit7e2c236fcdc863761fd4b01820ed18b533db8c9e (patch)
tree0580d4107e76b4109655abfacbb410f6da4bbeac /llvm/lib
parent0f0c5cfb196fe7ce9fc55a9815d0f5a7e29a42c2 (diff)
downloadbcm5719-llvm-7e2c236fcdc863761fd4b01820ed18b533db8c9e.tar.gz
bcm5719-llvm-7e2c236fcdc863761fd4b01820ed18b533db8c9e.zip
Initial version of the SysConfig abstraction for Win32.
llvm-svn: 16361
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Win32/SysConfig.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/llvm/lib/System/Win32/SysConfig.cpp b/llvm/lib/System/Win32/SysConfig.cpp
new file mode 100644
index 00000000000..b3a941bad9d
--- /dev/null
+++ b/llvm/lib/System/Win32/SysConfig.cpp
@@ -0,0 +1,29 @@
+//===- Win32/SysConfig.cpp - Win32 System Configuration ---------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file was developed by Jeff Cohen and is distributed under the
+// University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file defines some functions for managing system configuration on Win32.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/System/SysConfig.h"
+
+namespace llvm {
+
+// Some LLVM programs such as bugpoint produce core files as a normal part of
+// their operation. To prevent the disk from filling up, this configuration item
+// does what's necessary to prevent their generation.
+void sys::PreventCoreFiles() {
+ // Windows doesn't do core files, so nothing to do.
+ // Although... it might be nice to prevent the do-you-want-to-debug
+ // dialog box from coming up. Or maybe not...
+}
+
+}
+
+// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
OpenPOWER on IntegriCloud