summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-08-02 20:48:47 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-08-02 20:48:47 +0000
commitaf9bb0f37ea606491f09c9ab05064bf7e1bda0f3 (patch)
tree4ec2118149ba1af19f98bcaa877f6379a20400a6 /llvm/tools
parentc582114d4c67afae86186994e0e9607199a0cf9f (diff)
downloadbcm5719-llvm-af9bb0f37ea606491f09c9ab05064bf7e1bda0f3.tar.gz
bcm5719-llvm-af9bb0f37ea606491f09c9ab05064bf7e1bda0f3.zip
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
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/dsymutil/DwarfLinker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp
index 484c86aa5df..68618bc3371 100644
--- a/llvm/tools/dsymutil/DwarfLinker.cpp
+++ b/llvm/tools/dsymutil/DwarfLinker.cpp
@@ -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),
OpenPOWER on IntegriCloud