summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/Signals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Signals.h b/llvm/include/llvm/Support/Signals.h
index c0a489a4b82..db2fde5fb1c 100644
--- a/llvm/include/llvm/Support/Signals.h
+++ b/llvm/include/llvm/Support/Signals.h
@@ -31,6 +31,10 @@ namespace sys {
/// @brief Remove a file if a fatal signal occurs.
bool RemoveFileOnSignal(const Path &Filename, std::string* ErrMsg = 0);
+ inline bool RemoveFileOnSignal(StringRef Filename, std::string* ErrMsg = 0) {
+ return RemoveFileOnSignal(sys::Path(Filename), ErrMsg);
+ }
+
/// This function removes a file from the list of files to be removed on
/// signal delivery.
void DontRemoveFileOnSignal(const Path &Filename);
OpenPOWER on IntegriCloud