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 | |
| 13 | namespace __cxxabiv1 |
| 14 | { |
| 15 | |
| 16 | extern "C" |
| 17 | { |
| 18 | |
Marshall Clow | 4c2acbc | 2011-06-03 02:04:41 +0000 | [diff] [blame] | 19 | LIBCXXABI_NORETURN |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 20 | void __cxa_pure_virtual(void) { |
Nick Kledzik | 4360a64 | 2011-08-02 01:19:07 +0000 | [diff] [blame^] | 21 | abort_message("Pure virtual function called!"); |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 22 | } |
| 23 | |
Marshall Clow | 4c2acbc | 2011-06-03 02:04:41 +0000 | [diff] [blame] | 24 | LIBCXXABI_NORETURN |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 25 | void __cxa_deleted_virtual(void) { |
Nick Kledzik | 4360a64 | 2011-08-02 01:19:07 +0000 | [diff] [blame^] | 26 | abort_message("Deleted virtual function called!"); |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | } // extern "C" |
| 30 | |
| 31 | } // abi |