This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Rename NameTypeEntry and its field "Type"
ClosedPublic

Authored by MaskRay on Nov 13 2018, 10:39 AM.

Details

Summary

NameTypeEntry::Type is a bit-packed value of CU index+attributes, which is named cu_index_and_attrs in a local variable in gdb/dwarf2read.c:dw2_symtab_iter_next

CuIndexAndAttrs is more meaningful.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

MaskRay created this revision.Nov 13 2018, 10:39 AM
MaskRay updated this revision to Diff 173882.Nov 13 2018, 10:44 AM
MaskRay retitled this revision from [ELF] Rename NameTypeEntry::Type to CuIndexAndAttrs to [ELF] Rename NameTypeEntry and its field "Type".
MaskRay edited the summary of this revision. (Show Details)

Also rename NameTypeEntry

dblaikie accepted this revision.Nov 13 2018, 11:36 AM

Seems reasonable - the spec https://sourceware.org/gdb//onlinedocs/gdb/Index-Section-Format.html also describes these as "CU index+attributes" values.

This revision is now accepted and ready to land.Nov 13 2018, 11:36 AM
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.