[all-commits] [llvm/llvm-project] 7c2f58: Apply [[standalone_debug]] to some types in the STL.

Amy Huang via All-commits all-commits at lists.llvm.org
Tue May 18 17:11:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c2f58278e664d336e9d0ef0687bdd6c3837dc03
      https://github.com/llvm/llvm-project/commit/7c2f58278e664d336e9d0ef0687bdd6c3837dc03
  Author: Amy Huang <akhuang at google.com>
  Date:   2021-05-18 (Tue, 18 May 2021)

  Changed paths:
    M libcxx/include/__config
    M libcxx/include/__hash_table
    M libcxx/include/__tree
    M libcxx/include/forward_list
    M libcxx/include/list
    M libcxx/include/map
    M libcxx/include/unordered_map

  Log Message:
  -----------
  Apply [[standalone_debug]] to some types in the STL.

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.

Differential Revision: https://reviews.llvm.org/D98750




More information about the All-commits mailing list