mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-03 08:51:43 +00:00
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. llvm-svn: 243857
This commit is contained in:
parent
b03262f421
commit
68a61f4116
@ -2323,7 +2323,7 @@ unsigned DwarfLinker::cloneDieReferenceAttribute(
|
||||
unsigned DwarfLinker::cloneBlockAttribute(DIE &Die, AttributeSpec AttrSpec,
|
||||
const DWARFFormValue &Val,
|
||||
unsigned AttrSize) {
|
||||
DIE *Attr;
|
||||
DIEValueList *Attr;
|
||||
DIEValue Value;
|
||||
DIELoc *Loc = nullptr;
|
||||
DIEBlock *Block = nullptr;
|
||||
@ -2335,7 +2335,8 @@ unsigned DwarfLinker::cloneBlockAttribute(DIE &Die, AttributeSpec AttrSpec,
|
||||
Block = new (DIEAlloc) DIEBlock;
|
||||
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)
|
||||
Value = DIEValue(dwarf::Attribute(AttrSpec.Attr),
|
||||
|
Loading…
Reference in New Issue
Block a user