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_();


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to