mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-15 13:40:33 +00:00
Add a RemoveFileOnSignal that takes a StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bbf97ea7d5
commit
6c3df8e93e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user