Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-11-18 12:54:49 +0300
committerEric Fiselier <eric@efcs.ca>2016-11-18 12:54:49 +0300
commite9c9f002d7c6873653d15f185a3956116ac1548f (patch)
treea2727616a8d92dfb92f88244df0b11b6f42eaa50 /libcxxabi/src/stdlib_exception.cpp
parentb96e809c7f5e6147fdbdecd728ec0b5bd5d42443 (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.cpp41
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