Home | History | Annotate | Download | only in src
      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 {
     15 
     16 extern "C"
     17 {
     18 
     19 LIBCXXABI_NORETURN
     20 void __cxa_pure_virtual(void) {
     21     abort_message("Pure virtual function called!");
     22 }
     23 
     24 LIBCXXABI_NORETURN
     25 void __cxa_deleted_virtual(void) {
     26     abort_message("Deleted virtual function called!");
     27 }
     28 
     29 }  // extern "C"
     30 
     31 }  // abi
     32