mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
DWARF parser: Use ArrayRef to represent form sizes and simplify DWARFDIE::extractFast() interface. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193560 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -194,12 +194,9 @@ void DWARFUnit::extractDIEsToVector(
|
||||
uint32_t NextCUOffset = getNextUnitOffset();
|
||||
DWARFDebugInfoEntryMinimal DIE;
|
||||
uint32_t Depth = 0;
|
||||
const uint8_t *FixedFormSizes =
|
||||
DWARFFormValue::getFixedFormSizes(getAddressByteSize(), getVersion());
|
||||
bool IsCUDie = true;
|
||||
|
||||
while (Offset < NextCUOffset &&
|
||||
DIE.extractFast(this, FixedFormSizes, &Offset)) {
|
||||
while (Offset < NextCUOffset && DIE.extractFast(this, &Offset)) {
|
||||
if (IsCUDie) {
|
||||
if (AppendCUDie)
|
||||
Dies.push_back(DIE);
|
||||
|
Reference in New Issue
Block a user