diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-31 17:53:41 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-31 17:53:41 +0000 |
commit | b14809c51dcde9bedcad132e8297a1e73656ff89 (patch) | |
tree | 04626a10d414b7adfeb9c58f08b1b9b6eea1e0e4 /llvm/lib/System/Unix/SysConfig.cpp | |
parent | 4f48470d8407666c88c8fa704b8719a6dfe98250 (diff) | |
download | bcm5719-llvm-b14809c51dcde9bedcad132e8297a1e73656ff89.tar.gz bcm5719-llvm-b14809c51dcde9bedcad132e8297a1e73656ff89.zip |
Actually define PreventCoreFiles in the sys namespace.
llvm-svn: 16125
Diffstat (limited to 'llvm/lib/System/Unix/SysConfig.cpp')
-rw-r--r-- | llvm/lib/System/Unix/SysConfig.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/System/Unix/SysConfig.cpp b/llvm/lib/System/Unix/SysConfig.cpp index a1c037639b0..45b1f7d6f05 100644 --- a/llvm/lib/System/Unix/SysConfig.cpp +++ b/llvm/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); |