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" |
| 11 | |
| 12 | #include <stdio.h> |
| 13 | #include <stdlib.h> |
| 14 | |
| 15 | namespace __cxxabiv1 |
| 16 | { |
| 17 | |
| 18 | extern "C" |
| 19 | { |
| 20 | |
Marshall Clow | 4c2acbc | 2011-06-03 02:04:41 +0000 | [diff] [blame] | 21 | LIBCXXABI_NORETURN |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 22 | void __cxa_pure_virtual(void) { |
| 23 | fputs("Pure virtual function called!\n", stderr); |
| 24 | abort(); |
| 25 | } |
| 26 | |
Marshall Clow | 4c2acbc | 2011-06-03 02:04:41 +0000 | [diff] [blame] | 27 | LIBCXXABI_NORETURN |
Howard Hinnant | 9282718 | 2011-05-24 22:01:16 +0000 | [diff] [blame] | 28 | void __cxa_deleted_virtual(void) { |
| 29 | fputs("Deleted virtual function called!\n", stderr); |
| 30 | abort(); |
| 31 | } |
| 32 | |
| 33 | } // extern "C" |
| 34 | |
| 35 | } // abi |