mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Temporarily revert r191792 as it is causing some LTO debug failures
on platforms with relocations in debug info and also temporarily revert r191800 due to conflicts with the revert of r191792. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -113,21 +113,13 @@ DIE::~DIE() {
|
||||
/// Climb up the parent chain to get the compile unit DIE to which this DIE
|
||||
/// belongs.
|
||||
DIE *DIE::getCompileUnit() {
|
||||
DIE *Cu = checkCompileUnit();
|
||||
assert(Cu && "We should not have orphaned DIEs.");
|
||||
return Cu;
|
||||
}
|
||||
|
||||
/// Climb up the parent chain to get the compile unit DIE this DIE belongs
|
||||
/// to. Return NULL if DIE is not added to an owner yet.
|
||||
DIE *DIE::checkCompileUnit() {
|
||||
DIE *p = this;
|
||||
while (p) {
|
||||
if (p->getTag() == dwarf::DW_TAG_compile_unit)
|
||||
return p;
|
||||
p = p->getParent();
|
||||
}
|
||||
return NULL;
|
||||
llvm_unreachable("We should not have orphaned DIEs.");
|
||||
}
|
||||
|
||||
DIEValue *DIE::findAttribute(uint16_t Attribute) {
|
||||
|
||||
Reference in New Issue
Block a user