Skip to content

Commit

Permalink
[DWARFYAML][debug_gnu_*] 'Descriptor' field should be 1-byte. NFC.
Browse files Browse the repository at this point in the history
The 'Descriptor' field of .debug_gnu_pubnames and .debug_gnu_pubtypes
section should be 1-byte rather than 4-byte. This patch helps resolve
this issue.
  • Loading branch information
higuoxing committed Jun 25, 2020
1 parent d891d73 commit 93bc571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/ObjectYAML/DWARFEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Error DWARFYAML::emitPubSection(raw_ostream &OS,
for (auto Entry : Sect.Entries) {
writeInteger((uint32_t)Entry.DieOffset, OS, IsLittleEndian);
if (Sect.IsGNUStyle)
writeInteger((uint32_t)Entry.Descriptor, OS, IsLittleEndian);
writeInteger((uint8_t)Entry.Descriptor, OS, IsLittleEndian);
OS.write(Entry.Name.data(), Entry.Name.size());
OS.write('\0');
}
Expand Down

0 comments on commit 93bc571

Please sign in to comment.