summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-09-01 14:17:34 +0000
committerDan Gohman <gohman@apple.com>2010-09-01 14:17:34 +0000
commit41154114f64c1531764236e9268d2a5ac52e3e91 (patch)
tree319ab11fef0bef74dea022b59eb2ad0731112888 /include
parent2ad12a0e2afa3cdffa35a4223bea775ad06ad468 (diff)
downloadllvm-41154114f64c1531764236e9268d2a5ac52e3e91.tar.gz
llvm-41154114f64c1531764236e9268d2a5ac52e3e91.tar.bz2
llvm-41154114f64c1531764236e9268d2a5ac52e3e91.tar.xz
Add an interface for unregistering a file from the FilesToRemove list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/System/Signals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/System/Signals.h b/include/llvm/System/Signals.h
index 504420cd40..7f1c87c3d5 100644
--- a/include/llvm/System/Signals.h
+++ b/include/llvm/System/Signals.h
@@ -29,6 +29,10 @@ namespace sys {
/// @brief Remove a file if a fatal signal occurs.
bool RemoveFileOnSignal(const Path &Filename, std::string* ErrMsg = 0);
+ /// This function removes a file from the list of files to be removed on
+ /// signal delivery.
+ void DontRemoveFileOnSignal(const Path &Filename);
+
/// When an error signal (such as SIBABRT or SIGSEGV) is delivered to the
/// process, print a stack trace and then exit.
/// @brief Print a stack trace if a fatal signal occurs.