diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 21:16:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 21:16:58 +0000 |
commit | b7e2188f7fb9a1c1cb6dbd32b206e44b11b4a157 (patch) | |
tree | 3d4507bdbbf633130caf7e5ee43f6a4cb3f4a49e /include | |
parent | 6c3df8e93ece684f54a07d553085824f4e66984a (diff) | |
download | llvm-b7e2188f7fb9a1c1cb6dbd32b206e44b11b4a157.tar.gz llvm-b7e2188f7fb9a1c1cb6dbd32b206e44b11b4a157.tar.bz2 llvm-b7e2188f7fb9a1c1cb6dbd32b206e44b11b4a157.tar.xz |
Don't use PathV1.h in Signals.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/Signals.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/Support/Signals.h b/include/llvm/Support/Signals.h index db2fde5fb1..58ed175dc2 100644 --- a/include/llvm/Support/Signals.h +++ b/include/llvm/Support/Signals.h @@ -16,7 +16,6 @@ #define LLVM_SUPPORT_SIGNALS_H #include "llvm/Support/Path.h" -#include "llvm/Support/PathV1.h" #include <cstdio> namespace llvm { @@ -29,15 +28,11 @@ namespace sys { /// This function registers signal handlers to ensure that if a signal gets /// delivered that the named file is removed. /// @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); - } + bool RemoveFileOnSignal(StringRef 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); + void DontRemoveFileOnSignal(StringRef Filename); /// When an error signal (such as SIBABRT or SIGSEGV) is delivered to the /// process, print a stack trace and then exit. |