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 | 81e7fd011fa0fab28b23c787e2ab66fc1bc9a926 (patch) | |
tree | 2a53ca73dcc53598adb93818ec728008e8f0841f /llvm/lib/Support/FileOutputBuffer.cpp | |
parent | 2a008784d36f492b1fbead7a0f2e7c838ea0befb (diff) | |
download | bcm5719-llvm-81e7fd011fa0fab28b23c787e2ab66fc1bc9a926.tar.gz bcm5719-llvm-81e7fd011fa0fab28b23c787e2ab66fc1bc9a926.zip |
Use the simpler version of sys::fs::remove when possible.
llvm-svn: 198958
Diffstat (limited to 'llvm/lib/Support/FileOutputBuffer.cpp')
-rw-r--r-- | llvm/lib/Support/FileOutputBuffer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp index ed084faed78..c01778f9600 100644 --- a/llvm/lib/Support/FileOutputBuffer.cpp +++ b/llvm/lib/Support/FileOutputBuffer.cpp @@ -28,8 +28,7 @@ FileOutputBuffer::FileOutputBuffer(mapped_file_region * R, } FileOutputBuffer::~FileOutputBuffer() { - bool Existed; - sys::fs::remove(Twine(TempPath), Existed); + sys::fs::remove(Twine(TempPath)); } error_code FileOutputBuffer::create(StringRef FilePath, @@ -57,8 +56,7 @@ error_code FileOutputBuffer::create(StringRef FilePath, } // Delete target file. - bool Existed; - EC = sys::fs::remove(FilePath, Existed); + EC = sys::fs::remove(FilePath); if (EC) return EC; |