mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Support: Make error_category's constructor public
Since our error_category is based on the std one, we should have the same visibility for the constructor. This also allows us to avoid using the _do_message implementation detail in our own categories. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e85e50170
commit
c0a42c263e
@ -628,8 +628,8 @@ class error_category
|
||||
public:
|
||||
virtual ~error_category();
|
||||
|
||||
private:
|
||||
error_category();
|
||||
private:
|
||||
error_category(const error_category&) LLVM_DELETED_FUNCTION;
|
||||
error_category& operator=(const error_category&) LLVM_DELETED_FUNCTION;
|
||||
|
||||
|
@ -3257,7 +3257,7 @@ error_code BitcodeReader::InitLazyStream() {
|
||||
}
|
||||
|
||||
namespace {
|
||||
class BitcodeErrorCategoryType : public _do_message {
|
||||
class BitcodeErrorCategoryType : public error_category {
|
||||
const char *name() const override {
|
||||
return "llvm.bitcode";
|
||||
}
|
||||
|
@ -18,11 +18,11 @@ using namespace llvm;
|
||||
using namespace object;
|
||||
|
||||
namespace {
|
||||
class _object_error_category : public _do_message {
|
||||
class _object_error_category : public error_category {
|
||||
public:
|
||||
virtual const char* name() const;
|
||||
virtual std::string message(int ev) const;
|
||||
virtual error_condition default_error_condition(int ev) const;
|
||||
const char* name() const override;
|
||||
std::string message(int ev) const override;
|
||||
error_condition default_error_condition(int ev) const override;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
class _readobj_error_category : public _do_message {
|
||||
class _readobj_error_category : public error_category {
|
||||
public:
|
||||
const char* name() const override;
|
||||
std::string message(int ev) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user