Page MenuHomePhabricator

[llvm] Expose DWARFDebugLine::LineTable::getFileNameEntry
ClosedPublic

Authored by mtrofin on Jun 12 2019, 2:27 PM.

Details

Summary

This is useful for scenarios where Prologue was directly used and DWARF
5 awareness is required. The current alternative would be to either
duplicate the logic in getFileNameEntry, or to use getFileNameByIndex.
The latter isn't quite an in-place replacement - it performs some
processing, and it produces a string instead of a StringRef, meaning
the caller needs to handle its lifetime.

Diff Detail

Repository
rL LLVM

Event Timeline

mtrofin created this revision.Jun 12 2019, 2:27 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2019, 2:27 PM
aprantl added a project: debug-info.
tamur accepted this revision.Jun 12 2019, 2:55 PM
This revision is now accepted and ready to land.Jun 12 2019, 2:55 PM
JDevlieghere accepted this revision.Jun 12 2019, 2:57 PM
This revision was automatically updated to reflect the committed changes.