diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-27 06:17:27 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-27 06:17:27 +0000 |
commit | 68fdcc123b781fcea17f9c7bffdfdc8c41654324 (patch) | |
tree | 90f4daaf7c42a96cec97c72b351d32e18ec181a4 /include/llvm/System | |
parent | af2f208e7c727f75ee279d63c6b722da0d75fced (diff) | |
download | external_llvm-68fdcc123b781fcea17f9c7bffdfdc8c41654324.zip external_llvm-68fdcc123b781fcea17f9c7bffdfdc8c41654324.tar.gz external_llvm-68fdcc123b781fcea17f9c7bffdfdc8c41654324.tar.bz2 |
For PR351:
* Move implementation of sys::PreventCoreFiles function to this file from
the now defunct SysConfig abstraction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Process.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/System/Process.h b/include/llvm/System/Process.h index 56028fb..7733cf5 100644 --- a/include/llvm/System/Process.h +++ b/include/llvm/System/Process.h @@ -63,6 +63,12 @@ namespace sys { ///< Returns the current amount of system time for the process ); + /// This function makes the necessary calls to the operating system to + /// prevent core files or any other kind of large memory dumps that can + /// occur when a program fails. + /// @brief Prevent core file generation. + static void PreventCoreFiles(); + /// @} }; } |