blob: 437b6016ec8bb6ab317af793fb152e906b4910e2 [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
13namespace __cxxabiv1
14{
15
16extern "C"
17{
18
Marshall Clow4c2acbc2011-06-03 02:04:41 +000019LIBCXXABI_NORETURN
Howard Hinnant92827182011-05-24 22:01:16 +000020void __cxa_pure_virtual(void) {
Nick Kledzik4360a642011-08-02 01:19:07 +000021 abort_message("Pure virtual function called!");
Howard Hinnant92827182011-05-24 22:01:16 +000022}
23
Marshall Clow4c2acbc2011-06-03 02:04:41 +000024LIBCXXABI_NORETURN
Howard Hinnant92827182011-05-24 22:01:16 +000025void __cxa_deleted_virtual(void) {
Nick Kledzik4360a642011-08-02 01:19:07 +000026 abort_message("Deleted virtual function called!");
Howard Hinnant92827182011-05-24 22:01:16 +000027}
28
29} // extern "C"
30
31} // abi