aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-08-31 17:53:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-08-31 17:53:41 +0000
commitef6efabd6dc4c1b7d010b2ca75a69ffddbdbb81f (patch)
treee72ea6fe2a2050e68eb98be197a76a60f29f74b4
parent387e5ec502096dcd3564889b238e6442112a9784 (diff)
downloadexternal_llvm-ef6efabd6dc4c1b7d010b2ca75a69ffddbdbb81f.zip
external_llvm-ef6efabd6dc4c1b7d010b2ca75a69ffddbdbb81f.tar.gz
external_llvm-ef6efabd6dc4c1b7d010b2ca75a69ffddbdbb81f.tar.bz2
Actually define PreventCoreFiles in the sys namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16125 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/System/Unix/SysConfig.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/System/Unix/SysConfig.cpp b/lib/System/Unix/SysConfig.cpp
index a1c0376..45b1f7d 100644
--- a/lib/System/Unix/SysConfig.cpp
+++ b/lib/System/Unix/SysConfig.cpp
@@ -16,13 +16,11 @@
#include <sys/resource.h>
namespace llvm {
-using namespace sys;
-
// 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 PreventCoreFiles() {
+void sys::PreventCoreFiles() {
struct rlimit rlim;
rlim.rlim_cur = rlim.rlim_max = 0;
int res = setrlimit(RLIMIT_CORE, &rlim);