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
This commit is contained in:
parent
94404e8097
commit
401c02a7ed
|
@ -2323,7 +2323,7 @@ unsigned DwarfLinker::cloneDieReferenceAttribute(
|
||||||
unsigned DwarfLinker::cloneBlockAttribute(DIE &Die, AttributeSpec AttrSpec,
|
unsigned DwarfLinker::cloneBlockAttribute(DIE &Die, AttributeSpec AttrSpec,
|
||||||
const DWARFFormValue &Val,
|
const DWARFFormValue &Val,
|
||||||
unsigned AttrSize) {
|
unsigned AttrSize) {
|
||||||
DIE *Attr;
|
DIEValueList *Attr;
|
||||||
DIEValue Value;
|
DIEValue Value;
|
||||||
DIELoc *Loc = nullptr;
|
DIELoc *Loc = nullptr;
|
||||||
DIEBlock *Block = nullptr;
|
DIEBlock *Block = nullptr;
|
||||||
|
@ -2335,7 +2335,8 @@ unsigned DwarfLinker::cloneBlockAttribute(DIE &Die, AttributeSpec AttrSpec,
|
||||||
Block = new (DIEAlloc) DIEBlock;
|
Block = new (DIEAlloc) DIEBlock;
|
||||||
DIEBlocks.push_back(Block);
|
DIEBlocks.push_back(Block);
|
||||||
}
|
}
|
||||||
Attr = Loc ? static_cast<DIE *>(Loc) : static_cast<DIE *>(Block);
|
Attr = Loc ? static_cast<DIEValueList *>(Loc)
|
||||||
|
: static_cast<DIEValueList *>(Block);
|
||||||
|
|
||||||
if (Loc)
|
if (Loc)
|
||||||
Value = DIEValue(dwarf::Attribute(AttrSpec.Attr),
|
Value = DIEValue(dwarf::Attribute(AttrSpec.Attr),
|
||||||
|
|
Loading…
Reference in New Issue