]> granicus.if.org Git - llvm/commit
[llvm] Expose DWARFDebugLine::LineTable::getFileNameEntry
authorMircea Trofin <mtrofin@google.com>
Wed, 12 Jun 2019 22:02:07 +0000 (22:02 +0000)
committerMircea Trofin <mtrofin@google.com>
Wed, 12 Jun 2019 22:02:07 +0000 (22:02 +0000)
commit1422127962502e8ad3860dd7b76f65a9d447ff22
tree1dfa7ef7d3567e05a63ab32af62e1d198f88e13e
parentd761cdb4033b5323dc3aa8dcaa3c7409c07761cf
[llvm] Expose DWARFDebugLine::LineTable::getFileNameEntry

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.

Reviewers: tamur, dblaikie, JDevlieghere

Reviewed By: tamur, JDevlieghere

Subscribers: aprantl, llvm-commits

Tags: #llvm, #debug-info

Differential Revision: https://reviews.llvm.org/D63228

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363210 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFDebugLine.h