summaryrefslogtreecommitdiff
path: root/src/cxa_unexpected.cpp
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-01-30 16:07:00 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-01-30 16:07:00 +0000
commit7da9b96afc66c4496eb8809897c1b707b574a5c4 (patch)
tree06a075d4f2c6aab26fefe7d5b18f38693d8e50ae /src/cxa_unexpected.cpp
parent2b891bfd06e8e1ecf399b2684d5616de507e8403 (diff)
Add a descriptive name for a constant. Also I'm at least temporarily waging war on throw specs, both old and new style. Except where we have already publicly exposed the throw spec, I'm getting rid of them. They may come back later. But they seem somewhat prone to cyclic dependencies here. The throw spec implies compiler generated code that this library has to jump to during stack unwinding. I'd like to minimize the possiblity that the code used to properly make that jump is itself creating such jumps.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@149251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/cxa_unexpected.cpp')
-rw-r--r--src/cxa_unexpected.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cxa_unexpected.cpp b/src/cxa_unexpected.cpp
index 98c6a16..f6e6b6a 100644
--- a/src/cxa_unexpected.cpp
+++ b/src/cxa_unexpected.cpp
@@ -8,20 +8,20 @@
//===----------------------------------------------------------------------===//
#include <exception>
+#include <cxxabi.h>
+#include "cxa_exception.hpp"
+
+namespace __cxxabiv1
+{
#pragma GCC visibility push(default)
extern "C"
{
-__attribute__((noreturn))
-void
-__cxa_call_unexpected (void*)
-{
- // TODO: Completely unfinished!
- std::terminate();
-}
-
}
#pragma GCC visibility pop
+
+} // namespace __cxxabiv1
+