mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-03 12:18:00 +00:00
Temporarily revert r176882 as it needs to be implemented in a different
way for all platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -110,18 +110,6 @@ DIE::~DIE() {
|
||||
delete Children[i];
|
||||
}
|
||||
|
||||
/// Climb up the parent chain to get the compile unit DIE to which this DIE
|
||||
/// belongs.
|
||||
DIE *DIE::getCompileUnit() {
|
||||
DIE *p = this;
|
||||
while (p) {
|
||||
if (p->getTag() == dwarf::DW_TAG_compile_unit)
|
||||
return p;
|
||||
p = p->getParent();
|
||||
}
|
||||
llvm_unreachable("We should not have orphaned DIEs.");
|
||||
}
|
||||
|
||||
DIEValue *DIE::findAttribute(uint16_t Attribute) {
|
||||
const SmallVectorImpl<DIEValue *> &Values = getValues();
|
||||
const DIEAbbrev &Abbrevs = getAbbrev();
|
||||
|
Reference in New Issue
Block a user