aboutsummaryrefslogtreecommitdiff
path: root/libcxxabi
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-10-10 17:12:54 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-10-10 17:12:54 +0000
commit8a39827eb3fd0b17cd5e820eb2d31d75597182df (patch)
treee9e3bd4b9aa225c961cb330b37dfb852cbf51f4f /libcxxabi
parent72148edc36570bdb342129cc1fabb5070f3c2a76 (diff)
Blind attempt to fix linker errors when building libc++abit w/o exceptions.
llvm-svn: 344156
Diffstat (limited to 'libcxxabi')
-rw-r--r--libcxxabi/src/cxa_noexception.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxxabi/src/cxa_noexception.cpp b/libcxxabi/src/cxa_noexception.cpp
index adda552b89f5..8d5b5f2d00b5 100644
--- a/libcxxabi/src/cxa_noexception.cpp
+++ b/libcxxabi/src/cxa_noexception.cpp
@@ -52,4 +52,9 @@ __cxa_uncaught_exceptions() throw() { return 0; }
} // extern "C"
+// provide dummy implementations for the 'no exceptions' case.
+uint64_t __getExceptionClass (const _Unwind_Exception*) { return 0; }
+void __setExceptionClass ( _Unwind_Exception*, uint64_t) {}
+bool __isOurExceptionClass(const _Unwind_Exception*) { return false; }
+
} // abi