mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-03 12:18:00 +00:00
[DWARF parser] Make a few methods non-public
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -168,13 +168,13 @@ void DWARFUnit::extractDIEsToVector(
|
||||
|
||||
// Set the offset to that of the first DIE and calculate the start of the
|
||||
// next compilation unit header.
|
||||
uint32_t Offset = getFirstDIEOffset();
|
||||
uint32_t DIEOffset = Offset + getHeaderSize();
|
||||
uint32_t NextCUOffset = getNextUnitOffset();
|
||||
DWARFDebugInfoEntryMinimal DIE;
|
||||
uint32_t Depth = 0;
|
||||
bool IsCUDie = true;
|
||||
|
||||
while (Offset < NextCUOffset && DIE.extractFast(this, &Offset)) {
|
||||
while (DIEOffset < NextCUOffset && DIE.extractFast(this, &DIEOffset)) {
|
||||
if (IsCUDie) {
|
||||
if (AppendCUDie)
|
||||
Dies.push_back(DIE);
|
||||
@@ -207,9 +207,9 @@ void DWARFUnit::extractDIEsToVector(
|
||||
// Give a little bit of info if we encounter corrupt DWARF (our offset
|
||||
// should always terminate at or before the start of the next compilation
|
||||
// unit header).
|
||||
if (Offset > NextCUOffset)
|
||||
if (DIEOffset > NextCUOffset)
|
||||
fprintf(stderr, "warning: DWARF compile unit extends beyond its "
|
||||
"bounds cu 0x%8.8x at 0x%8.8x'\n", getOffset(), Offset);
|
||||
"bounds cu 0x%8.8x at 0x%8.8x'\n", getOffset(), DIEOffset);
|
||||
}
|
||||
|
||||
size_t DWARFUnit::extractDIEsIfNeeded(bool CUDieOnly) {
|
||||
|
Reference in New Issue
Block a user