projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LLParser: Handle BlockAddresses on-the-fly
[oota-llvm.git]
/
lib
/
Support
/
FileOutputBuffer.cpp
diff --git
a/lib/Support/FileOutputBuffer.cpp
b/lib/Support/FileOutputBuffer.cpp
index 8a7b0d73f94367ece8350375896a97d5608cf8e3..94bcdc58a8062d2c2a9179a3a6811044b40fa3bf 100644
(file)
--- a/
lib/Support/FileOutputBuffer.cpp
+++ b/
lib/Support/FileOutputBuffer.cpp
@@
-11,6
+11,7
@@
//
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
+#include "llvm/Support/Errc.h"
#include "llvm/Support/FileOutputBuffer.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/FileOutputBuffer.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/raw_ostream.h"
@@
-51,7
+52,7
@@
FileOutputBuffer::create(StringRef FilePath, size_t Size,
if (EC)
return EC;
else
if (EC)
return EC;
else
- return
std::make_error_code(std::
errc::operation_not_permitted);
+ return
make_error_code(
errc::operation_not_permitted);
}
// Delete target file.
}
// Delete target file.
@@
-86,7
+87,7
@@
FileOutputBuffer::create(StringRef FilePath, size_t Size,
std::error_code FileOutputBuffer::commit(int64_t NewSmallerSize) {
// Unmap buffer, letting OS flush dirty pages to file on disk.
std::error_code FileOutputBuffer::commit(int64_t NewSmallerSize) {
// Unmap buffer, letting OS flush dirty pages to file on disk.
- Region.reset(
nullptr
);
+ Region.reset();
// If requested, resize file as part of commit.
if ( NewSmallerSize != -1 ) {
// If requested, resize file as part of commit.
if ( NewSmallerSize != -1 ) {