mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +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:
@ -676,7 +676,7 @@ static void VerifySubsetOf(const MDNode *LHS, const MDNode *RHS) {
|
||||
#endif
|
||||
|
||||
/// \brief Set the array of member DITypes.
|
||||
void DICompositeType::setTypeArray(DIArray Elements, DIArray TParams) {
|
||||
void DICompositeType::setArrays(DIArray Elements, DIArray TParams) {
|
||||
assert((!TParams || DbgNode->getNumOperands() == 15) &&
|
||||
"If you're setting the template parameters this should include a slot "
|
||||
"for that!");
|
||||
@ -1064,7 +1064,7 @@ void DebugInfoFinder::processType(DIType DT) {
|
||||
if (DT.isCompositeType()) {
|
||||
DICompositeType DCT(DT);
|
||||
processType(DCT.getTypeDerivedFrom().resolve(TypeIdentifierMap));
|
||||
DIArray DA = DCT.getTypeArray();
|
||||
DIArray DA = DCT.getElements();
|
||||
for (unsigned i = 0, e = DA.getNumElements(); i != e; ++i) {
|
||||
DIDescriptor D = DA.getElement(i);
|
||||
if (D.isType())
|
||||
@ -1347,7 +1347,7 @@ void DIDerivedType::printInternal(raw_ostream &OS) const {
|
||||
|
||||
void DICompositeType::printInternal(raw_ostream &OS) const {
|
||||
DIType::printInternal(OS);
|
||||
DIArray A = getTypeArray();
|
||||
DIArray A = getElements();
|
||||
OS << " [" << A.getNumElements() << " elements]";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user