diff options
author | Mark Harmstone <mark@harmstone.com> | 2024-08-26 21:19:51 +0100 |
---|---|---|
committer | Mark Harmstone <mark@harmstone.com> | 2024-08-29 02:53:08 +0100 |
commit | 310fd68c6cb62b69ddd98c61aab8cb9db242b6a4 (patch) | |
tree | 5db4c6bcf78e19551ad256ca1b802232613f72a1 /gcc/dwarf2codeview.h | |
parent | 350122685af24442501f19e2f03a0a2d8c651bc8 (diff) | |
download | gcc-310fd68c6cb62b69ddd98c61aab8cb9db242b6a4.zip gcc-310fd68c6cb62b69ddd98c61aab8cb9db242b6a4.tar.gz gcc-310fd68c6cb62b69ddd98c61aab8cb9db242b6a4.tar.bz2 |
Handle scoping in CodeView LF_FUNC_ID types
If a function is in a namespace, create an LF_STRING_ID type for the
name of its parent, and record this in the LF_FUNC_ID type we create
for the function.
gcc/
* dwarf2codeview.cc (enum cf_leaf_type): Add LF_STRING_ID.
(struct codeview_custom_type): Add lf_string_id to union.
(struct string_id_hasher): New type.
(string_id_htab): New global variable.
(write_lf_string_id): New function.
(write_custom_types): Call write_lf_string_id.
(codeview_debug_finish): Free string_id_htab.
(add_string_id): New function.
(get_scope_string_id): New function.
(add_function): Call get_scope_string_id and set scope.
Diffstat (limited to 'gcc/dwarf2codeview.h')
0 files changed, 0 insertions, 0 deletions