summaryrefslogtreecommitdiff
path: root/libcxx/src/string.cpp
diff options
context:
space:
mode:
authorMartijn Vels <mvels@google.com>2020-03-02 10:11:35 -0500
committerMartijn Vels <mvels@google.com>2020-03-02 10:26:37 -0500
commit675326466b532bb329f9ded090d5337bc48b148a (patch)
treef6b73908e5fef37f6d6f502567bfac09d573c27a /libcxx/src/string.cpp
parent1d104f75498c97cca8ed1fc068a5c359fb7276d8 (diff)
Add flag _LIBCPP_ABI_STRING_OPTIMIZED_EXTERNAL_INSTANTIATIONS for basic_string ABI
Summary: This review is a mostly trivial change to use an explicit ABI flag for the unstable external template list. This follows the practice for an ABI flag per feature, and provides a spot for the rational / motivation for the flag. Reviewers: EricWF, ldionne Subscribers: dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D75457
Diffstat (limited to 'libcxx/src/string.cpp')
-rw-r--r--libcxx/src/string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/string.cpp b/libcxx/src/string.cpp
index 0345170a70ee..5105594cf38b 100644
--- a/libcxx/src/string.cpp
+++ b/libcxx/src/string.cpp
@@ -20,7 +20,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS __basic_string_common<true>;
-#if defined(_LIBCPP_ABI_UNSTABLE) || _LIBCPP_ABI_VERSION >= 2
+#ifdef _LIBCPP_ABI_STRING_OPTIMIZED_EXTERNAL_INSTANTIATION
_LIBCPP_STRING_UNSTABLE_EXTERN_TEMPLATE_LIST(_LIBCPP_EXTERN_TEMPLATE_DEFINE, char)
_LIBCPP_STRING_UNSTABLE_EXTERN_TEMPLATE_LIST(_LIBCPP_EXTERN_TEMPLATE_DEFINE, wchar_t)
#else