mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-24 21:00:36 +00:00
[AsmPrinter] Rename a comment of .debug_gnu_pubnames entry
Summary: The comment refers to the field as "Kind:". However, in gdb, https://sourceware.org/gdb//onlinedocs/gdb/Index-Section-Format.html names it "attributes", gdb/dwarf2read.c:dw2_symtab_iter_next refers to the whole value as "cu_index_and_attrs" Change it to `Attributes:` for consistency. Reviewers: dblaikie Reviewed By: dblaikie Subscribers: aprantl, JDevlieghere, arphaman, llvm-commits Differential Revision: https://reviews.llvm.org/D54480 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ecc582a8ce
commit
57f3c62937
@ -1839,8 +1839,8 @@ void DwarfDebug::emitDebugPubSection(bool GnuStyle, StringRef Name,
|
||||
if (GnuStyle) {
|
||||
dwarf::PubIndexEntryDescriptor Desc = computeIndexValue(TheU, Entity);
|
||||
Asm->OutStreamer->AddComment(
|
||||
Twine("Kind: ") + dwarf::GDBIndexEntryKindString(Desc.Kind) + ", " +
|
||||
dwarf::GDBIndexEntryLinkageString(Desc.Linkage));
|
||||
Twine("Attributes: ") + dwarf::GDBIndexEntryKindString(Desc.Kind) +
|
||||
", " + dwarf::GDBIndexEntryLinkageString(Desc.Linkage));
|
||||
Asm->emitInt8(Desc.toBits());
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@
|
||||
; }
|
||||
|
||||
; ASM: .section .debug_gnu_pubnames
|
||||
; ASM: .byte 32 # Kind: VARIABLE, EXTERNAL
|
||||
; ASM: .byte 32 # Attributes: VARIABLE, EXTERNAL
|
||||
; ASM-NEXT: .asciz "global_variable" # External Name
|
||||
|
||||
; ASM: .section .debug_gnu_pubtypes
|
||||
|
Loading…
x
Reference in New Issue
Block a user