diff options
author | Nick Kledzik <kledzik@apple.com> | 2011-08-02 01:19:07 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2011-08-02 01:19:07 +0000 |
commit | 4360a640d25a45b514dc69a045dab8d9ac3807fb (patch) | |
tree | 1367d5c1ce3b4e86b41e0861878839408a6141b7 /src/cxa_virtual.cpp | |
parent | 41683112536848562f538ee20e16dcd86c84fed5 (diff) |
use abort_message()
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@136671 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/cxa_virtual.cpp')
-rw-r--r-- | src/cxa_virtual.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cxa_virtual.cpp b/src/cxa_virtual.cpp index e3450d1..437b601 100644 --- a/src/cxa_virtual.cpp +++ b/src/cxa_virtual.cpp @@ -8,9 +8,7 @@ //===----------------------------------------------------------------------===// #include "cxxabi.h" - -#include <stdio.h> -#include <stdlib.h> +#include "abort_message.h" namespace __cxxabiv1 { @@ -20,14 +18,12 @@ extern "C" LIBCXXABI_NORETURN void __cxa_pure_virtual(void) { - fputs("Pure virtual function called!\n", stderr); - abort(); + abort_message("Pure virtual function called!"); } LIBCXXABI_NORETURN void __cxa_deleted_virtual(void) { - fputs("Deleted virtual function called!\n", stderr); - abort(); + abort_message("Deleted virtual function called!"); } } // extern "C" |