diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-12 17:35:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-12-12 17:35:34 +0000 |
commit | 5753cf3c6371ef269da3f645afbabb2fd92ae56e (patch) | |
tree | cb2fe66cbc5548053613f1a57610a9121e2fe5da /llvm/lib/Support/FileOutputBuffer.cpp | |
parent | 231f714e5441f73394f5c0421bb3f0f83ffd7ad2 (diff) | |
download | bcm5719-llvm-5753cf3c6371ef269da3f645afbabb2fd92ae56e.tar.gz bcm5719-llvm-5753cf3c6371ef269da3f645afbabb2fd92ae56e.zip |
Remove unused feature. NFC.
llvm-svn: 224135
Diffstat (limited to 'llvm/lib/Support/FileOutputBuffer.cpp')
-rw-r--r-- | llvm/lib/Support/FileOutputBuffer.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp index 57a0f60d277..e6e4da34652 100644 --- a/llvm/lib/Support/FileOutputBuffer.cpp +++ b/llvm/lib/Support/FileOutputBuffer.cpp @@ -91,16 +91,10 @@ FileOutputBuffer::create(StringRef FilePath, size_t Size, return std::error_code(); } -std::error_code FileOutputBuffer::commit(int64_t NewSmallerSize) { +std::error_code FileOutputBuffer::commit() { // Unmap buffer, letting OS flush dirty pages to file on disk. Region.reset(); - // If requested, resize file as part of commit. - if ( NewSmallerSize != -1 ) { - std::error_code EC = sys::fs::resize_file(Twine(TempPath), NewSmallerSize); - if (EC) - return EC; - } // Rename file to final name. return sys::fs::rename(Twine(TempPath), Twine(FinalPath)); |