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

@@ -141,7 +141,7 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO,
RRData = new RREntrypoints();
if (!CodeGenOpts.InstrProfileInput.empty()) {
if (llvm::error_code EC = llvm::IndexedInstrProfReader::create(
if (std::error_code EC = llvm::IndexedInstrProfReader::create(
CodeGenOpts.InstrProfileInput, PGOReader)) {
unsigned DiagID = Diags.getCustomDiagID(DiagnosticsEngine::Error,
"Could not read profile: %0");