[lld] r238732 - COFF: Add noexcept to std::error_category::name

Denis Protivensky dprotivensky at accesssoftek.com
Mon Jun 1 01:12:45 PDT 2015


Author: denis-protivensky
Date: Mon Jun  1 03:12:44 2015
New Revision: 238732

URL: http://llvm.org/viewvc/llvm-project?rev=238732&view=rev
Log:
COFF: Add noexcept to std::error_category::name

This fixes build error with gcc.

Modified:
    lld/trunk/COFF/Error.h

Modified: lld/trunk/COFF/Error.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Error.h?rev=238732&r1=238731&r2=238732&view=diff
==============================================================================
--- lld/trunk/COFF/Error.h (original)
+++ lld/trunk/COFF/Error.h Mon Jun  1 03:12:44 2015
@@ -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)) {





More information about the llvm-commits mailing list