[libcxx-commits] [PATCH] D98750: Apply [[standalone_debug]] to some types in the STL.

Amy Huang via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 16 16:30:16 PDT 2021


akhuang created this revision.
akhuang added reviewers: EricWF, ldionne, rnk, dblaikie.
akhuang requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Add this attribute to some types to ensure that they have
debug info.
The debug info for these classes are required for debuggers to display
some STL types. With constructor homing (a new debug info optimization)
their debug info isn't emitted because their constructors are never
called.

The list of types with the attribute added are __hash_value_type,
__value_type, __tree_node_base, __tree_node, __hash_node, __list_node,
and __forward_list_node.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98750

Files:
  libcxx/include/__config
  libcxx/include/__hash_table
  libcxx/include/__tree
  libcxx/include/forward_list
  libcxx/include/list
  libcxx/include/map
  libcxx/include/unordered_map

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98750.331128.patch
Type: text/x-patch
Size: 3148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210316/f2c9ecf7/attachment.bin>


More information about the libcxx-commits mailing list