diff options
author | 2021-01-02 20:29:53 +0000 | |
---|---|---|
committer | 2021-01-02 20:29:53 +0000 | |
commit | 79c2e3e6701c0feff28e91707e6fb8294ca9a8eb (patch) | |
tree | 4d8f5617581bbda5db135e5655f03076ba356558 /gnu/llvm/libcxxabi/src/stdlib_exception.cpp | |
parent | Import libc++ 10.0.1 release. (diff) | |
download | wireguard-openbsd-79c2e3e6701c0feff28e91707e6fb8294ca9a8eb.tar.xz wireguard-openbsd-79c2e3e6701c0feff28e91707e6fb8294ca9a8eb.zip |
Import libc++abi 10.0.1 release.
Diffstat (limited to 'gnu/llvm/libcxxabi/src/stdlib_exception.cpp')
-rw-r--r-- | gnu/llvm/libcxxabi/src/stdlib_exception.cpp | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/gnu/llvm/libcxxabi/src/stdlib_exception.cpp b/gnu/llvm/libcxxabi/src/stdlib_exception.cpp new file mode 100644 index 00000000000..88d911d96c9 --- /dev/null +++ b/gnu/llvm/libcxxabi/src/stdlib_exception.cpp @@ -0,0 +1,71 @@ +//===---------------------------- exception.cpp ---------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#define _LIBCPP_BUILDING_LIBRARY +#include <new> +#include <exception> + +namespace std +{ + +// exception + +exception::~exception() _NOEXCEPT +{ +} + +const char* exception::what() const _NOEXCEPT +{ + return "std::exception"; +} + +// bad_exception + +bad_exception::~bad_exception() _NOEXCEPT +{ +} + +const char* bad_exception::what() const _NOEXCEPT +{ + return "std::bad_exception"; +} + + +// bad_alloc + +bad_alloc::bad_alloc() _NOEXCEPT +{ +} + +bad_alloc::~bad_alloc() _NOEXCEPT +{ +} + +const char* +bad_alloc::what() const _NOEXCEPT +{ + return "std::bad_alloc"; +} + +// bad_array_new_length + +bad_array_new_length::bad_array_new_length() _NOEXCEPT +{ +} + +bad_array_new_length::~bad_array_new_length() _NOEXCEPT +{ +} + +const char* +bad_array_new_length::what() const _NOEXCEPT +{ + return "bad_array_new_length"; +} + +} // std |