COFF: Add noexcept to std::error_category::name

This fixes build error with gcc.

llvm-svn: 238732
This commit is contained in:
Denis Protivensky 2015-06-01 08:12:44 +00:00
parent f04e3862ca
commit c44223ed96
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ enum class LLDError {
class LLDErrorCategory : public std::error_category {
public:
const char *name() const override { return "lld"; }
const char *name() const noexcept override { return "lld"; }
std::string message(int EV) const override {
switch (static_cast<LLDError>(EV)) {