[AMDGPU] New AMDGPUInsertSingleUseVDST pass (#72388)
[llvm-project.git] / libcxxabi / src / stdlib_exception.cpp
blobb1fc21f412aa941b35394f8224d703650b8fcd8f
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include <new>
10 #include <exception>
12 namespace std
15 // exception
17 exception::~exception() noexcept
21 const char* exception::what() const noexcept
23 return "std::exception";
26 // bad_exception
28 bad_exception::~bad_exception() noexcept
32 const char* bad_exception::what() const noexcept
34 return "std::bad_exception";
38 // bad_alloc
40 bad_alloc::bad_alloc() noexcept
44 bad_alloc::~bad_alloc() noexcept
48 const char*
49 bad_alloc::what() const noexcept
51 return "std::bad_alloc";
54 // bad_array_new_length
56 bad_array_new_length::bad_array_new_length() noexcept
60 bad_array_new_length::~bad_array_new_length() noexcept
64 const char*
65 bad_array_new_length::what() const noexcept
67 return "bad_array_new_length";
70 } // std