llvm-project/libcxx
Douglas Gregor 64ec101eb6 Teach libc++ about the addressof() overloads it needs to work with
Objective-C Automatic Reference Counting, where Objective-C object
pointers can have several different qualifiers (__strong, __weak,
__autoreleasing, __unsafe_unretained). These addressof() overloads are
only provided in ARC mode, and the __weak variant is conditionalized
on having weak-reference support in the ARC runtime.

For historical reasons, Clang provides these definitions itself, and
defines the macro _LIBCPP_PREDEFINED_OBJC_ARC_ADDRESSOF to note when
it as done so. The code belongs here, and this redundancy will be
eliminated in the future.

Addresses <rdar://problem/9658274>.

llvm-svn: 133656
2011-06-22 22:17:44 +00:00
..
cmake http://llvm.org/bugs/show_bug.cgi?id=9399 fixed by Ryuta Suzuki 2011-05-24 12:54:00 +00:00
include Teach libc++ about the addressof() overloads it needs to work with 2011-06-22 22:17:44 +00:00
lib more Apple build system tweaks 2011-06-09 23:31:35 +00:00
src noexcept for Chapter 22 [localization]. 2011-05-31 15:34:58 +00:00
test noexcept for <stack>. This completes noexcept for Chapter 23 [containers]. 2011-06-04 22:09:19 +00:00
www Add instructions for -U__STRICT_ANSI__ for Mac OS 10.6 2011-06-22 12:13:55 +00:00
CMakeLists.txt Add CMake build and fix major Linux blockers. 2010-12-10 19:47:54 +00:00
CREDITS.TXT Update CREDITS.TXT 2011-06-09 16:53:33 +00:00
LICENSE.TXT libc++ is now dual licensed under both UIUC and MIT licenses. 2010-11-16 21:40:19 +00:00
Makefile support another Apple build environment 2011-05-24 20:27:31 +00:00