commit | 15467189c3779084a3d997d6b5e0c42594047cd1 | [log] [tgz] |
---|---|---|
author | Howard Hinnant <hhinnant@apple.com> | Tue Apr 30 21:44:48 2013 +0000 |
committer | Howard Hinnant <hhinnant@apple.com> | Tue Apr 30 21:44:48 2013 +0000 |
tree | 36e990f5eb14b4599001ba61c56a74c80b95ceab | |
parent | 867deb8e063eff3b8f5cda51acdb8a5684f7d4d8 [diff] |
This patch introduces an alternative layout for basic_string which when the string is short, the data pointer will be word-aligned. It can be activated with -D_LIBCPP_ALTERNATE_STRING_LAYOUT. These two different layouts (the default and _LIBCPP_ALTERNATE_STRING_LAYOUT) are not ABI compatible with each other. Once one is chosen for a given platform, it is disruptive to change it. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@180811 91177308-0d34-0410-b5e6-96231b3b80d8