diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-11-18 12:54:49 +0300 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-11-18 12:54:49 +0300 |
commit | e9c9f002d7c6873653d15f185a3956116ac1548f (patch) | |
tree | a2727616a8d92dfb92f88244df0b11b6f42eaa50 /libcxxabi/src/stdlib_exception.cpp | |
parent | b96e809c7f5e6147fdbdecd728ec0b5bd5d42443 (diff) |
Rename TU names to not conflict with libc++.
In order to easily merge libc++ and libc++abi static archives it's important
that none of the source files share the same name.
(See http://stackoverflow.com/questions/3821916/how-to-merge-two-ar-static-libraries-into-one)
This patch renames source files which share a name with libc++ sources.
llvm-svn: 287327
Diffstat (limited to 'libcxxabi/src/stdlib_exception.cpp')
-rw-r--r-- | libcxxabi/src/stdlib_exception.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libcxxabi/src/stdlib_exception.cpp b/libcxxabi/src/stdlib_exception.cpp new file mode 100644 index 000000000000..c47a9b762661 --- /dev/null +++ b/libcxxabi/src/stdlib_exception.cpp @@ -0,0 +1,41 @@ +//===---------------------------- exception.cpp ---------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include <exception> + +#pragma GCC visibility push(default) + +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"; +} + +} // std + +#pragma GCC visibility pop |