[PATCH] D21329: Rename and rework `_LIBCPP_TRIVIAL_PAIR_COPY_CTOR`. Move FreeBSD configuration in-tree.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 14 10:32:17 PDT 2016


EricWF created this revision.
EricWF added reviewers: mclow.lists, dim, emaste, theraven.
EricWF added a subscriber: cfe-commits.
Herald added a subscriber: emaste.

This patch does the following:

* It renames `_LIBCPP_TRIVIAL_PAIR_COPY_CTOR` to `_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR`. 
* It automatically enables this option on FreeBSD in ABI V1, since that's the current ABI FreeBSD ships.
* It cleans up the handling of this option in `std::pair`.

I would like the sign off from the FreeBSD maintainers. They will no longer need to keep their `__config` changes downstream.

I'm still hoping to come up with a better way to maintain the ABI without needing these constructors.

http://reviews.llvm.org/D21329

Files:
  include/__config
  include/utility
  test/libcxx/utilities/utility/pairs/pairs.pair/trivial_copy_move.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21329.60702.patch
Type: text/x-patch
Size: 5460 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160614/7eec3c39/attachment-0001.bin>


More information about the cfe-commits mailing list