This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen/Dwarf] Make debug_names compatible with split-dwarf
ClosedPublic

Authored by labath on Apr 12 2018, 6:17 AM.

Details

Summary

Previously we crashed for the combination of the two features because we
tried to reference the dwo CU from the main object file. The fix
consists of two items:

  • reference the skeleton CU from the name index (the consumer is expected to use the skeleton CU to find the real data).
  • use the main object file string pool for the strings in the index

Diff Detail

Repository
rL LLVM

Event Timeline

labath created this revision.Apr 12 2018, 6:17 AM
aprantl accepted this revision.Apr 12 2018, 8:51 AM
aprantl added inline comments.
lib/CodeGen/AsmPrinter/DwarfDebug.h
342 ↗(On Diff #142159)

any kind of doxygen comment that would make sense here?

This revision is now accepted and ready to land.Apr 12 2018, 8:51 AM
JDevlieghere accepted this revision.Apr 12 2018, 9:10 AM
This revision was automatically updated to reflect the committed changes.
labath marked an inline comment as done.