mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Remove unused feature. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224135 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user