llvm.org GIT mirror llvm / 401c02a
DwarfLinker: Use DIEValueList instead of DIE, NFC Use `DIEValueList` as a pointer to either `DIEBlock` or `DIELoc` instead of `DIE`, since soon they won't inherit from the latter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243857 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan P. N. Exon Smith 5 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
23222322 unsigned DwarfLinker::cloneBlockAttribute(DIE &Die, AttributeSpec AttrSpec,
23232323 const DWARFFormValue &Val,
23242324 unsigned AttrSize) {
2325 DIE *Attr;
2325 DIEValueList *Attr;
23262326 DIEValue Value;
23272327 DIELoc *Loc = nullptr;
23282328 DIEBlock *Block = nullptr;
23342334 Block = new (DIEAlloc) DIEBlock;
23352335 DIEBlocks.push_back(Block);
23362336 }
2337 Attr = Loc ? static_cast *>(Loc) : static_cast(Block);
2337 Attr = Loc ? static_castValueList *>(Loc)
2338 : static_cast(Block);
23382339
23392340 if (Loc)
23402341 Value = DIEValue(dwarf::Attribute(AttrSpec.Attr),