[DebugInfo] Move function from line table to the prologue (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 16 Jul 2019 00:37:17 +0000 (00:37 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 16 Jul 2019 00:37:17 +0000 (00:37 +0000)
commit509903e887263182f580ae75c7fee2eaedb66fae
treed1cd1a540892355b3a66e9c7fd3f0e9bcee6182a
parentbf20b2ace68d300665cf920050fda50003bd1096
[DebugInfo] Move function from line table to the prologue (NFC)

In LLDB, when parsing type units, we don't need to parse the whole line
table. Instead, we only need to parse the "support files" from the line
table prologue.

To make that possible, this patch moves the respective functions from
the LineTable into the Prologue. Because I don't think users of the
LineTable should have to know that these files come from the Prologue,

I've left the original methods in place, and made them redirect to the
LineTable.

Differential revision: https://reviews.llvm.org/D64774

llvm-svn: 366158
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp