diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-03-15 04:05:59 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-03-15 04:05:59 +0000 |
commit | c0a42c263e1cf8f3d3cd69afec9c4264d23c616c (patch) | |
tree | 4b9594a610d54d0138b4384be990deea069ceb24 /lib/Object | |
parent | 8e85e5017092090c01b72f6ab57c7c3f1b73a235 (diff) | |
download | llvm-c0a42c263e1cf8f3d3cd69afec9c4264d23c616c.tar.gz llvm-c0a42c263e1cf8f3d3cd69afec9c4264d23c616c.tar.bz2 llvm-c0a42c263e1cf8f3d3cd69afec9c4264d23c616c.tar.xz |
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
Diffstat (limited to 'lib/Object')
-rw-r--r-- | lib/Object/Error.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Object/Error.cpp b/lib/Object/Error.cpp index 47ce38c888..8e508696cf 100644 --- a/lib/Object/Error.cpp +++ b/lib/Object/Error.cpp @@ -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; }; } |