[cfe-commits] [libcxxabi] r136671 - /libcxxabi/trunk/src/cxa_virtual.cpp

Nick Kledzik kledzik at apple.com
Mon Aug 1 18:19:07 PDT 2011


Author: kledzik
Date: Mon Aug  1 20:19:07 2011
New Revision: 136671

URL: http://llvm.org/viewvc/llvm-project?rev=136671&view=rev
Log:
use abort_message()

Modified:
    libcxxabi/trunk/src/cxa_virtual.cpp

Modified: libcxxabi/trunk/src/cxa_virtual.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_virtual.cpp?rev=136671&r1=136670&r2=136671&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_virtual.cpp (original)
+++ libcxxabi/trunk/src/cxa_virtual.cpp Mon Aug  1 20:19:07 2011
@@ -8,9 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "cxxabi.h"
-
-#include <stdio.h>
-#include <stdlib.h>
+#include "abort_message.h"
 
 namespace __cxxabiv1
 {
@@ -20,14 +18,12 @@
 
 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"





More information about the cfe-commits mailing list