[libcxx] r205138 - ARM64: use the alternate string layout on Apple platforms.

Tim Northover tnorthover at apple.com
Sun Mar 30 04:34:22 PDT 2014


Author: tnorthover
Date: Sun Mar 30 06:34:22 2014
New Revision: 205138

URL: http://llvm.org/viewvc/llvm-project?rev=205138&view=rev
Log:
ARM64: use the alternate string layout on Apple platforms.

Modified:
    libcxx/trunk/include/__config

Modified: libcxx/trunk/include/__config
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/__config?rev=205138&r1=205137&r2=205138&view=diff
==============================================================================
--- libcxx/trunk/include/__config (original)
+++ libcxx/trunk/include/__config Sun Mar 30 06:34:22 2014
@@ -203,6 +203,10 @@
 
 #if defined(__clang__)
 
+#if __APPLE__ && !defined(__i386__) && !defined(__x86_64__) && !defined(__arm__)
+#define _LIBCPP_ALTERNATE_STRING_LAYOUT
+#endif
+
 #if __has_feature(cxx_alignas)
 #  define _ALIGNAS_TYPE(x) alignas(x)
 #  define _ALIGNAS(x) alignas(x)





More information about the cfe-commits mailing list