diff options
Diffstat (limited to 'system/lib/libcxxabi/src/cxa_virtual.cpp')
-rw-r--r-- | system/lib/libcxxabi/src/cxa_virtual.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/system/lib/libcxxabi/src/cxa_virtual.cpp b/system/lib/libcxxabi/src/cxa_virtual.cpp new file mode 100644 index 00000000..437b6016 --- /dev/null +++ b/system/lib/libcxxabi/src/cxa_virtual.cpp @@ -0,0 +1,31 @@ +//===-------------------------- cxa_virtual.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 "cxxabi.h" +#include "abort_message.h" + +namespace __cxxabiv1 +{ + +extern "C" +{ + +LIBCXXABI_NORETURN +void __cxa_pure_virtual(void) { + abort_message("Pure virtual function called!"); +} + +LIBCXXABI_NORETURN +void __cxa_deleted_virtual(void) { + abort_message("Deleted virtual function called!"); +} + +} // extern "C" + +} // abi |