diff options
Diffstat (limited to 'lib/Core/Error.cpp')
-rw-r--r-- | lib/Core/Error.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Core/Error.cpp b/lib/Core/Error.cpp index 4df1ce120bd9..6fc76f7ca3d0 100644 --- a/lib/Core/Error.cpp +++ b/lib/Core/Error.cpp @@ -16,9 +16,10 @@ using namespace lld; +namespace { class _YamlReaderErrorCategory : public std::error_category { public: - const char* name() const LLVM_NOEXCEPT override { + const char* name() const noexcept override { return "lld.yaml.reader"; } @@ -33,6 +34,7 @@ public: "message defined."); } }; +} // end anonymous namespace const std::error_category &lld::YamlReaderCategory() { static _YamlReaderErrorCategory o; @@ -48,7 +50,7 @@ class dynamic_error_category : public std::error_category { public: ~dynamic_error_category() override = default; - const char *name() const LLVM_NOEXCEPT override { + const char *name() const noexcept override { return "lld.dynamic_error"; } |