[libcxx-commits] [libcxx] 06be4bb - [libc++] Remove deprecated _LIBCPP_ALTERNATE_STRING_LAYOUT macro

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jun 25 13:33:40 PDT 2020


Author: Louis Dionne
Date: 2020-06-25T16:33:30-04:00
New Revision: 06be4bb5e6cc703f9a45c2b63c6a749a73e9be65

URL: https://github.com/llvm/llvm-project/commit/06be4bb5e6cc703f9a45c2b63c6a749a73e9be65
DIFF: https://github.com/llvm/llvm-project/commit/06be4bb5e6cc703f9a45c2b63c6a749a73e9be65.diff

LOG: [libc++] Remove deprecated _LIBCPP_ALTERNATE_STRING_LAYOUT macro

We use the _LIBCPP_ABI_ALTERNATE_STRING_LAYOUT macro for that now instead.
I did leave a check behind to make sure that nobody was still using the old
macro name. I'll remove it a couple of months down the road.

Added: 
    

Modified: 
    libcxx/include/__config

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__config b/libcxx/include/__config
index 26fadcff7ced..a0de82ce81cf 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -398,12 +398,12 @@
 
 #if defined(_LIBCPP_COMPILER_CLANG)
 
-// _LIBCPP_ALTERNATE_STRING_LAYOUT is an old name for
-// _LIBCPP_ABI_ALTERNATE_STRING_LAYOUT left here for backward compatibility.
-#if (defined(__APPLE__) && !defined(__i386__) && !defined(__x86_64__) &&       \
-     (!defined(__arm__) || __ARM_ARCH_7K__ >= 2)) ||                           \
-    defined(_LIBCPP_ALTERNATE_STRING_LAYOUT)
-#define _LIBCPP_ABI_ALTERNATE_STRING_LAYOUT
+#if defined(_LIBCPP_ALTERNATE_STRING_LAYOUT)
+#  error _LIBCPP_ALTERNATE_STRING_LAYOUT is deprecated, please use _LIBCPP_ABI_ALTERNATE_STRING_LAYOUT instead
+#endif
+#if defined(__APPLE__) && !defined(__i386__) && !defined(__x86_64__) &&       \
+    (!defined(__arm__) || __ARM_ARCH_7K__ >= 2)
+#  define _LIBCPP_ABI_ALTERNATE_STRING_LAYOUT
 #endif
 
 #if __has_feature(cxx_alignas)


        


More information about the libcxx-commits mailing list