mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
DebugInfo: Remove typedefs for DITypeRef, etc.
Remove typedefs for type refs: - DITypeRef => MDTypeRef - DIScopeRef => MDScopeRef - DIDescriptorRef => DebugNodeRef git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -174,13 +174,13 @@ DIType DbgVariable::getType() const {
|
||||
uint16_t tag = Ty->getTag();
|
||||
|
||||
if (tag == dwarf::DW_TAG_pointer_type)
|
||||
subType = resolve(DITypeRef(cast<MDDerivedType>(Ty)->getBaseType()));
|
||||
subType = resolve(cast<MDDerivedType>(Ty)->getBaseType());
|
||||
|
||||
auto Elements = cast<MDCompositeTypeBase>(subType)->getElements();
|
||||
for (unsigned i = 0, N = Elements.size(); i < N; ++i) {
|
||||
auto *DT = cast<MDDerivedTypeBase>(Elements[i]);
|
||||
if (getName() == DT->getName())
|
||||
return resolve(DITypeRef(DT->getBaseType()));
|
||||
return resolve(DT->getBaseType());
|
||||
}
|
||||
}
|
||||
return Ty;
|
||||
|
Reference in New Issue
Block a user