HomePhabricator

[DWARFLinker] Add CompileUnit::getInfo helper that takes a DWARFDie (NFC)

Authored by JDevlieghere on Nov 6 2020, 7:35 PM.

Description

[DWARFLinker] Add CompileUnit::getInfo helper that takes a DWARFDie (NFC)

Eliminate the need to go through the DIE index by passing the DIE to
CompileUnit::getInfo directly.

Before:

unsigned Idx = Unit->getOrigUnit().getDIEIndex(Die);
CompileUnit::DIEInfo &Info = Unit->getInfo(Idx);

After:

CompileUnit::DIEInfo &Info = Unit->getInfo(Die);

Details

Committed
JDevlieghereNov 6 2020, 7:37 PM
Parents
rG0b17c6e4479d: [LoopDeletion] Allows deletion of possibly infinite side-effect free loops
Branches
Unknown
Tags
Unknown