[cfe-commits] [libcxxabi] r148966 - /libcxxabi/trunk/src/cxa_exception_storage.cpp

Howard Hinnant hhinnant at apple.com
Wed Jan 25 11:19:14 PST 2012


Author: hhinnant
Date: Wed Jan 25 13:19:13 2012
New Revision: 148966

URL: http://llvm.org/viewvc/llvm-project?rev=148966&view=rev
Log:
Add comment documenting extension behavior of __cxa_get_globals_fast().

Modified:
    libcxxabi/trunk/src/cxa_exception_storage.cpp

Modified: libcxxabi/trunk/src/cxa_exception_storage.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_exception_storage.cpp?rev=148966&r1=148965&r2=148966&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_exception_storage.cpp (original)
+++ libcxxabi/trunk/src/cxa_exception_storage.cpp Wed Jan 25 13:19:13 2012
@@ -75,6 +75,10 @@
         return retVal;
         }
 
+    // Note that this implementation will reliably return NULL if not
+    // preceeded by a call to __cxa_get_globals().  This is an extension
+    // to the Itanium ABI and is taken advantage of in several places in
+    // libc++abi.
     __cxa_eh_globals * __cxa_get_globals_fast () noexcept {
     //  First time through, create the key.
         static int init = construct_();





More information about the cfe-commits mailing list