[lld] r210626 - Inherit from error_category instead of _do_message.

Rafael Espindola rafael.espindola at gmail.com
Tue Jun 10 20:28:14 PDT 2014


Author: rafael
Date: Tue Jun 10 22:28:13 2014
New Revision: 210626

URL: http://llvm.org/viewvc/llvm-project?rev=210626&view=rev
Log:
Inherit from error_category instead of _do_message.

There is no std::_do_message and these classes override message anyway.

Modified:
    lld/trunk/lib/Core/Error.cpp

Modified: lld/trunk/lib/Core/Error.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Error.cpp?rev=210626&r1=210625&r2=210626&view=diff
==============================================================================
--- lld/trunk/lib/Core/Error.cpp (original)
+++ lld/trunk/lib/Core/Error.cpp Tue Jun 10 22:28:13 2014
@@ -84,7 +84,7 @@ const llvm::error_category &lld::YamlRea
   return o;
 }
 
-class _LinkerScriptReaderErrorCategory : public llvm::_do_message {
+class _LinkerScriptReaderErrorCategory : public llvm::error_category {
 public:
   const char *name() const LLVM_NOEXCEPT override {
     return "lld.linker-script.reader";
@@ -115,7 +115,7 @@ const llvm::error_category &lld::LinkerS
   return o;
 }
 
-class _InputGraphErrorCategory : public llvm::_do_message {
+class _InputGraphErrorCategory : public llvm::error_category {
 public:
   const char *name() const LLVM_NOEXCEPT override {
     return "lld.inputGraph.parse";
@@ -141,7 +141,7 @@ const llvm::error_category &lld::InputGr
   return i;
 }
 
-class _ReaderErrorCategory : public llvm::_do_message {
+class _ReaderErrorCategory : public llvm::error_category {
 public:
   const char *name() const LLVM_NOEXCEPT override {
     return "lld.inputGraph.parse";
@@ -179,7 +179,7 @@ namespace lld {
 /// Temporary class to enable make_dynamic_error_code() until
 /// llvm::ErrorOr<> is updated to work with error encapsulations 
 /// other than error_code.
-class dynamic_error_category : public llvm::_do_message {
+class dynamic_error_category : public llvm::error_category {
 public:
   const char *name() const LLVM_NOEXCEPT override {
     return "lld.dynamic_error";





More information about the llvm-commits mailing list