summaryrefslogtreecommitdiff
path: root/lib/Support/ToolOutputFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-10 21:40:29 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-10 21:40:29 +0000
commit2dc1d6666b41573c151fdd832d3becbaf6442e86 (patch)
tree2f83c7b272b07d05f068d274c9197e65a28ec7be /lib/Support/ToolOutputFile.cpp
parent217c714a6779841ae06f420f384b87e12454b1a1 (diff)
downloadllvm-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 'lib/Support/ToolOutputFile.cpp')
-rw-r--r--lib/Support/ToolOutputFile.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Support/ToolOutputFile.cpp b/lib/Support/ToolOutputFile.cpp
index 5c1268a40a..b5fb20f4b2 100644
--- a/lib/Support/ToolOutputFile.cpp
+++ b/lib/Support/ToolOutputFile.cpp
@@ -25,10 +25,8 @@ tool_output_file::CleanupInstaller::CleanupInstaller(const char *filename)
tool_output_file::CleanupInstaller::~CleanupInstaller() {
// Delete the file if the client hasn't told us not to.
- if (!Keep && Filename != "-") {
- bool Existed;
- sys::fs::remove(Filename, Existed);
- }
+ if (!Keep && Filename != "-")
+ sys::fs::remove(Filename);
// Ok, the file is successfully written and closed, or deleted. There's no
// further need to clean it up on signals.