summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-03-15 04:05:59 +0000
committerJustin Bogner <mail@justinbogner.com>2014-03-15 04:05:59 +0000
commite3bfdc4e14bedf433b838963d6936dcc2fceb511 (patch)
tree565d2840dc7e39cc455a8fabed5d974e023335df /llvm/lib
parent64587433cee773f0d08601b77bf634509ef05a42 (diff)
downloadbcm5719-llvm-e3bfdc4e14bedf433b838963d6936dcc2fceb511.tar.gz
bcm5719-llvm-e3bfdc4e14bedf433b838963d6936dcc2fceb511.zip
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. llvm-svn: 203998
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
-rw-r--r--llvm/lib/Object/Error.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 19528c8e67b..ab0a1249f2d 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -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";
}
diff --git a/llvm/lib/Object/Error.cpp b/llvm/lib/Object/Error.cpp
index 47ce38c8883..8e508696cfb 100644
--- a/llvm/lib/Object/Error.cpp
+++ b/llvm/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;
};
}
OpenPOWER on IntegriCloud