mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
[Debug Info] rename getTypeArray to getElements, setTypeArray to setArrays.
This is the second of a series of patches to handle type uniqueing of the type array for a subroutine type. For vector and array types, getElements returns the array of subranges, so it is a better name than getTypeArray. Even for class, struct and enum types, getElements returns the members, which can be subprograms. setArrays can set up to two arrays, the second is the templates. This commit should have no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214112 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -150,7 +150,7 @@ DIType DbgVariable::getType() const {
|
||||
if (tag == dwarf::DW_TAG_pointer_type)
|
||||
subType = resolve(DIDerivedType(Ty).getTypeDerivedFrom());
|
||||
|
||||
DIArray Elements = DICompositeType(subType).getTypeArray();
|
||||
DIArray Elements = DICompositeType(subType).getElements();
|
||||
for (unsigned i = 0, N = Elements.getNumElements(); i < N; ++i) {
|
||||
DIDerivedType DT(Elements.getElement(i));
|
||||
if (getName() == DT.getName())
|
||||
@ -468,7 +468,7 @@ DIE *DwarfDebug::createScopeChildrenDIE(
|
||||
|
||||
// If this is a variadic function, add an unspecified parameter.
|
||||
DISubprogram SP(Scope->getScopeNode());
|
||||
DIArray FnArgs = SP.getType().getTypeArray();
|
||||
DIArray FnArgs = SP.getType().getElements();
|
||||
if (FnArgs.getElement(FnArgs.getNumElements() - 1)
|
||||
.isUnspecifiedParameter()) {
|
||||
Children.push_back(
|
||||
|
Reference in New Issue
Block a user