diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-10 21:40:29 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-10 21:40:29 +0000 |
commit | 2dc1d6666b41573c151fdd832d3becbaf6442e86 (patch) | |
tree | 2f83c7b272b07d05f068d274c9197e65a28ec7be /include/llvm/Support/FileUtilities.h | |
parent | 217c714a6779841ae06f420f384b87e12454b1a1 (diff) | |
download | llvm-2dc1d6666b41573c151fdd832d3becbaf6442e86.tar.gz llvm-2dc1d6666b41573c151fdd832d3becbaf6442e86.tar.bz2 llvm-2dc1d6666b41573c151fdd832d3becbaf6442e86.tar.xz |
Use the simpler version of sys::fs::remove when possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198958 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileUtilities.h')
-rw-r--r-- | include/llvm/Support/FileUtilities.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index 79c59e4306..873b8df30e 100644 --- a/include/llvm/Support/FileUtilities.h +++ b/include/llvm/Support/FileUtilities.h @@ -51,8 +51,7 @@ namespace llvm { ~FileRemover() { if (DeleteIt) { // Ignore problems deleting the file. - bool existed; - sys::fs::remove(Filename.str(), existed); + sys::fs::remove(Filename.str()); } } @@ -62,8 +61,7 @@ namespace llvm { void setFile(const Twine& filename, bool deleteIt = true) { if (DeleteIt) { // Ignore problems deleting the file. - bool existed; - sys::fs::remove(Filename.str(), existed); + sys::fs::remove(Filename.str()); } Filename.clear(); |