This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Fix emitting DWARF64 .debug_str_offsets sections (8/19).
ClosedPublic

Authored by ikudrin on Sep 2 2020, 6:22 AM.

Details

Summary

The patch fixes calculating the size of the table and emitting the unit length field.

Diff Detail

Event Timeline

ikudrin created this revision.Sep 2 2020, 6:22 AM
ikudrin requested review of this revision.Sep 2 2020, 6:22 AM
dblaikie accepted this revision.Sep 2 2020, 3:56 PM
dblaikie added inline comments.
llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp
128

Hmm - this is the line used to emit the offsets in the string offsets table, right? So how is this working/passing the test? Wouldn't it be str_offsets table be messed/too small?

This revision is now accepted and ready to land.Sep 2 2020, 3:56 PM
ikudrin marked an inline comment as done.Sep 3 2020, 4:18 AM
ikudrin added inline comments.
llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp
128

This line works for .debug_str_offsets.dwo, emitting which is fixed in D87018.

ikudrin retitled this revision from [DebugInfo] Fix emitting DWARF64 .debug_str_offsets sections (10/19). to [DebugInfo] Fix emitting DWARF64 .debug_str_offsets sections (8/19)..Sep 3 2020, 7:38 AM
This revision was landed with ongoing or failed builds.Sep 14 2020, 10:24 PM
This revision was automatically updated to reflect the committed changes.
ikudrin marked an inline comment as done.