diff options
author | davidchisnall <theraven@theravensnest.org> | 2014-05-09 01:35:36 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-09 01:35:36 +0000 |
commit | 964952e95678174c4f36ea45f487132c7fd0344f (patch) | |
tree | 08da2c62a32ef6a259568d65649da55fabb0b68b | |
parent | 8ca9258100de00749bc2bc4e4dcbf6974e5e19ec (diff) | |
parent | d338c532201dcf2415dbd19d5fa19926205a204c (diff) | |
download | libcxxrt-964952e95678174c4f36ea45f487132c7fd0344f.tar.gz |
am d338c532: Merge pull request #12 from mdempsky/master
* commit 'd338c532201dcf2415dbd19d5fa19926205a204c':
Implement __cxa_deleted_virtual()
-rw-r--r-- | src/auxhelper.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/auxhelper.cc b/src/auxhelper.cc index dd34d3d..213f8a0 100644 --- a/src/auxhelper.cc +++ b/src/auxhelper.cc @@ -65,3 +65,13 @@ extern "C" void __cxa_pure_virtual() abort(); } +/** + * Compilers may (but are not required to) set any deleted-virtual function's + * vtable entry to this function. This makes debugging slightly easier, as + * users can add a breakpoint on this function to tell if they've accidentally + * called a deleted-virtual function. + */ +extern "C" void __cxa_deleted_virtual() +{ + abort(); +} |