summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-27 06:17:27 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-27 06:17:27 +0000
commit68fdcc123b781fcea17f9c7bffdfdc8c41654324 (patch)
tree90f4daaf7c42a96cec97c72b351d32e18ec181a4 /include
parentaf2f208e7c727f75ee279d63c6b722da0d75fced (diff)
downloadllvm-68fdcc123b781fcea17f9c7bffdfdc8c41654324.tar.gz
llvm-68fdcc123b781fcea17f9c7bffdfdc8c41654324.tar.bz2
llvm-68fdcc123b781fcea17f9c7bffdfdc8c41654324.tar.xz
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')
-rw-r--r--include/llvm/System/Process.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/System/Process.h b/include/llvm/System/Process.h
index 56028fb7bc..7733cf5f65 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();
+
/// @}
};
}