blob: 0da383ac23738822fabc90c8d9e6d535afdb7d7d [file] [log] [blame]
Howard Hinnant92827182011-05-24 22:01:16 +00001//===-------------------------- 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 Kledzik4360a642011-08-02 01:19:07 +000011#include "abort_message.h"
Howard Hinnant92827182011-05-24 22:01:16 +000012
Saleem Abdulrasool77a304b2015-12-04 02:14:41 +000013namespace __cxxabiv1 {
14extern "C" {
Marshall Clow4c2acbc2011-06-03 02:04:41 +000015LIBCXXABI_NORETURN
Howard Hinnant92827182011-05-24 22:01:16 +000016void __cxa_pure_virtual(void) {
Saleem Abdulrasool77a304b2015-12-04 02:14:41 +000017 abort_message("Pure virtual function called!");
Howard Hinnant92827182011-05-24 22:01:16 +000018}
19
Marshall Clow4c2acbc2011-06-03 02:04:41 +000020LIBCXXABI_NORETURN
Howard Hinnant92827182011-05-24 22:01:16 +000021void __cxa_deleted_virtual(void) {
Saleem Abdulrasool77a304b2015-12-04 02:14:41 +000022 abort_message("Deleted virtual function called!");
Howard Hinnant92827182011-05-24 22:01:16 +000023}
Saleem Abdulrasool77a304b2015-12-04 02:14:41 +000024} // extern "C"
25} // abi