Commit 93bc571d authored by Xing GUO's avatar Xing GUO
Browse files

[DWARFYAML][debug_gnu_*] 'Descriptor' field should be 1-byte. NFC.

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.
parent d891d738
......@@ -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.size());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment