• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-------------------------- cxa_virtual.cpp ---------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #include "cxxabi.h"
11 #include "abort_message.h"
12 
13 namespace __cxxabiv1 {
14 extern "C" {
15 _LIBCXXABI_FUNC_VIS LIBCXXABI_NORETURN
__cxa_pure_virtual(void)16 void __cxa_pure_virtual(void) {
17   abort_message("Pure virtual function called!");
18 }
19 
20 _LIBCXXABI_FUNC_VIS LIBCXXABI_NORETURN
__cxa_deleted_virtual(void)21 void __cxa_deleted_virtual(void) {
22   abort_message("Deleted virtual function called!");
23 }
24 } // extern "C"
25 } // abi
26