There is no std::errc:success, remove the llvm one.

llvm-svn: 209958
This commit is contained in:
Rafael Espindola 2014-05-31 03:20:37 +00:00
parent 882ce87b2e
commit a72f21d195
1 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
if (NativeReaderError(ev) == NativeReaderError::success)
return llvm::errc::success;
return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};
@ -72,7 +72,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
if (YamlReaderError(ev) == YamlReaderError::success)
return llvm::errc::success;
return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};
@ -100,7 +100,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
LinkerScriptReaderError e = LinkerScriptReaderError(ev);
if (e == LinkerScriptReaderError::success)
return llvm::errc::success;
return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};
@ -123,7 +123,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
if (InputGraphError(ev) == InputGraphError::success)
return llvm::errc::success;
return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};
@ -149,7 +149,7 @@ public:
llvm::error_condition default_error_condition(int ev) const override {
if (ReaderError(ev) == ReaderError::success)
return llvm::errc::success;
return llvm::error_condition();
return llvm::errc::invalid_argument;
}
};