Replace llvm::error_code with std::error_code.

llvm-svn: 210780
This commit is contained in:
Rafael Espindola
2014-06-12 14:02:15 +00:00
parent 6c97d979df
commit c080917ec2
26 changed files with 76 additions and 78 deletions

View File

@@ -390,7 +390,7 @@ llvm::MemoryBuffer *FileManager::
getBufferForFile(const FileEntry *Entry, std::string *ErrorStr,
bool isVolatile) {
std::unique_ptr<llvm::MemoryBuffer> Result;
llvm::error_code ec;
std::error_code ec;
uint64_t FileSize = Entry->getSize();
// If there's a high enough chance that the file have changed since we
@@ -431,7 +431,7 @@ getBufferForFile(const FileEntry *Entry, std::string *ErrorStr,
llvm::MemoryBuffer *FileManager::
getBufferForFile(StringRef Filename, std::string *ErrorStr) {
std::unique_ptr<llvm::MemoryBuffer> Result;
llvm::error_code ec;
std::error_code ec;
if (FileSystemOpts.WorkingDir.empty()) {
ec = FS->getBufferForFile(Filename, Result);
if (ec && ErrorStr)