blob: f59fa7ee2c63cf072119e63c90a256c1e053e6a8 [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" {
Eric Fiselier9e2169e2017-03-01 02:23:54 +000015_LIBCXXABI_FUNC_VIS _LIBCXXABI_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
Eric Fiselier9e2169e2017-03-01 02:23:54 +000020_LIBCXXABI_FUNC_VIS _LIBCXXABI_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