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

@@ -145,8 +145,8 @@ JSONCompilationDatabase *
JSONCompilationDatabase::loadFromFile(StringRef FilePath,
std::string &ErrorMessage) {
std::unique_ptr<llvm::MemoryBuffer> DatabaseBuffer;
llvm::error_code Result =
llvm::MemoryBuffer::getFile(FilePath, DatabaseBuffer);
std::error_code Result =
llvm::MemoryBuffer::getFile(FilePath, DatabaseBuffer);
if (Result) {
ErrorMessage = "Error while opening JSON database: " + Result.message();
return nullptr;