Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 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" |
Nick Kledzik | 4360a64 | 2011-08-02 01:19:07 +0000 | [diff] [blame] | 11 | #include "abort_message.h" |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 12 | |
Saleem Abdulrasool | 77a304b | 2015-12-04 02:14:41 +0000 | [diff] [blame] | 13 | namespace __cxxabiv1 { |
| 14 | extern "C" { |
Eric Fiselier | 9e2169e | 2017-03-01 02:23:54 +0000 | [diff] [blame] | 15 | _LIBCXXABI_FUNC_VIS _LIBCXXABI_NORETURN |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 16 | void __cxa_pure_virtual(void) { |
Saleem Abdulrasool | 77a304b | 2015-12-04 02:14:41 +0000 | [diff] [blame] | 17 | abort_message("Pure virtual function called!"); |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 18 | } |
| 19 | |
Eric Fiselier | 9e2169e | 2017-03-01 02:23:54 +0000 | [diff] [blame] | 20 | _LIBCXXABI_FUNC_VIS _LIBCXXABI_NORETURN |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 21 | void __cxa_deleted_virtual(void) { |
Saleem Abdulrasool | 77a304b | 2015-12-04 02:14:41 +0000 | [diff] [blame] | 22 | abort_message("Deleted virtual function called!"); |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 23 | } |
Saleem Abdulrasool | 77a304b | 2015-12-04 02:14:41 +0000 | [diff] [blame] | 24 | } // extern "C" |
| 25 | } // abi |