Don't import error_category into the llvm namespace.
[oota-llvm.git] / tools / obj2yaml / Error.cpp
index 3034e08951446b063876068b203819cd0ef5824a..5b07b9cda8d6eab3ffefe81a5df28b2ddc7ae145 100644 (file)
@@ -13,7 +13,7 @@
 using namespace llvm;
 
 namespace {
-class _obj2yaml_error_category : public error_category {
+class _obj2yaml_error_category : public std::error_category {
 public:
   const char *name() const LLVM_NOEXCEPT override;
   std::string message(int ev) const override;
@@ -47,7 +47,7 @@ _obj2yaml_error_category::default_error_condition(int ev) const {
 }
 
 namespace llvm {
-const error_category &obj2yaml_category() {
+  const std::error_category &obj2yaml_category() {
   static _obj2yaml_error_category o;
   return o;
 }