From ef6efabd6dc4c1b7d010b2ca75a69ffddbdbb81f Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Tue, 31 Aug 2004 17:53:41 +0000 Subject: Actually define PreventCoreFiles in the sys namespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16125 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/Unix/SysConfig.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/System/Unix/SysConfig.cpp') diff --git a/lib/System/Unix/SysConfig.cpp b/lib/System/Unix/SysConfig.cpp index a1c037639b..45b1f7d6f0 100644 --- a/lib/System/Unix/SysConfig.cpp +++ b/lib/System/Unix/SysConfig.cpp @@ -16,13 +16,11 @@ #include 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); -- cgit v1.2.3-18-g5258