remove some inherited attributes on exceptions

These exception types are marked with `_LIBCPP_EXCEPTION_ABI` which
expands to `__attribute__((__visibility__("default")))` or
`__declspec(dllexport)`.  When building for Windows, we would hit an
error:

    cannot apply 'dllexport' to a 'dllexport' class

Remove the duplicate annotations as they will be inherited from the
class.

llvm-svn: 290785
This commit is contained in:
Saleem Abdulrasool 2016-12-31 17:34:26 +00:00
parent 7510d9aa8a
commit 21711c451e
2 changed files with 1 additions and 2 deletions

View File

@ -167,7 +167,6 @@ public:
bad_optional_access() : logic_error("bad optional access") {}
// Get the key function ~bad_optional_access() into the dylib
_LIBCPP_FUNC_VIS
virtual ~bad_optional_access() _NOEXCEPT;
};

View File

@ -216,7 +216,7 @@ namespace std { // explicitly not using versioning namespace
class _LIBCPP_EXCEPTION_ABI bad_variant_access : public exception {
public:
_LIBCPP_FUNC_VIS virtual const char* what() const _NOEXCEPT;
virtual const char* what() const _NOEXCEPT;
};
} // namespace std