mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Adjust to the changed StructType interface. In particular, getElementTypes() is gone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11228 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,9 +42,8 @@ StructLayout::StructLayout(const StructType *ST, const TargetData &TD)
|
||||
StructSize = 0;
|
||||
|
||||
// Loop over each of the elements, placing them in memory...
|
||||
for (StructType::ElementTypes::const_iterator
|
||||
TI = ST->getElementTypes().begin(),
|
||||
TE = ST->getElementTypes().end(); TI != TE; ++TI) {
|
||||
for (StructType::element_iterator TI = ST->element_begin(),
|
||||
TE = ST->element_end(); TI != TE; ++TI) {
|
||||
const Type *Ty = *TI;
|
||||
unsigned char A;
|
||||
unsigned TyAlign;
|
||||
@@ -227,7 +226,7 @@ uint64_t TargetData::getIndexedOffset(const Type *ptrTy,
|
||||
Result += Layout->MemberOffsets[FieldNo];
|
||||
|
||||
// Update Ty to refer to current element
|
||||
Ty = STy->getElementTypes()[FieldNo];
|
||||
Ty = STy->getElementType(FieldNo);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user