[cfe-commits] [libcxxabi] r148763 - /libcxxabi/trunk/src/abort_message.cpp

Howard Hinnant hhinnant at apple.com
Mon Jan 23 16:52:33 PST 2012


Author: hhinnant
Date: Mon Jan 23 18:52:33 2012
New Revision: 148763

URL: http://llvm.org/viewvc/llvm-project?rev=148763&view=rev
Log:
Removed reference to internal header

Modified:
    libcxxabi/trunk/src/abort_message.cpp

Modified: libcxxabi/trunk/src/abort_message.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/abort_message.cpp?rev=148763&r1=148762&r2=148763&view=diff
==============================================================================
--- libcxxabi/trunk/src/abort_message.cpp (original)
+++ libcxxabi/trunk/src/abort_message.cpp Mon Jan 23 18:52:33 2012
@@ -10,49 +10,20 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>
-
-#if __APPLE__ 
-    #include <Availability.h>
-    #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
-        #include <CrashReporterClient.h>
-
-        //  If any clients of llvm try to link to libCrashReporterClient.a themselves,
-        //  only one crash info struct will be used.
-        extern "C" {
-        CRASH_REPORTER_CLIENT_HIDDEN 
-        struct crashreporter_annotations_t gCRAnnotations 
-                __attribute__((section("__DATA," CRASHREPORTER_ANNOTATIONS_SECTION))) 
-                = { CRASHREPORTER_ANNOTATIONS_VERSION, 0, 0, 0, 0, 0, 0 };
-        }
-
-    #endif
-#endif
-
 #include "abort_message.h"
 
 __attribute__((visibility("hidden")))
 void abort_message(const char* format, ...)
 {
-	// write message to stderr
+    // write message to stderr
 #if __APPLE__
-	fprintf(stderr, "libc++abi.dylib: ");
-#endif
-	va_list	list;
-	va_start(list, format);
-	vfprintf(stderr, format, list);
-	va_end(list);
-	fprintf(stderr, "\n");
-	
-#if __APPLE__ && (__MAC_OS_X_VERSION_MIN_REQUIRED >= 1070)
-	// record message in crash report
-	char* buffer;
-	va_list	list2;
-	va_start(list2, format);
-	vasprintf(&buffer, format, list2);
-	va_end(list2);
-	CRSetCrashLogMessage(buffer);
+    fprintf(stderr, "libc++abi.dylib: ");
 #endif
-
-	abort();
+    va_list list;
+    va_start(list, format);
+    vfprintf(stderr, format, list);
+    va_end(list);
+    fprintf(stderr, "\n");
+    abort();
 }
 





More information about the cfe-commits mailing list