@@ -1252,15 +1252,15 @@ bool XCOFFSymbolRef::isFunction() const {
1252
1252
return false ;
1253
1253
1254
1254
const int16_t SectNum = getSectionNumber ();
1255
- Expected<DataRefImpl> SI = OwningObjectPtr ->getSectionByNum (SectNum);
1255
+ Expected<DataRefImpl> SI = getObject () ->getSectionByNum (SectNum);
1256
1256
if (!SI) {
1257
1257
// If we could not get the section, then this symbol should not be
1258
1258
// a function. So consume the error and return `false` to move on.
1259
1259
consumeError (SI.takeError ());
1260
1260
return false ;
1261
1261
}
1262
1262
1263
- return (OwningObjectPtr ->getSectionFlags (SI.get ()) & XCOFF::STYP_TEXT);
1263
+ return (getObject () ->getSectionFlags (SI.get ()) & XCOFF::STYP_TEXT);
1264
1264
}
1265
1265
1266
1266
bool XCOFFSymbolRef::isCsectSymbol () const {
@@ -1279,13 +1279,13 @@ Expected<XCOFFCsectAuxRef> XCOFFSymbolRef::getXCOFFCsectAuxRef() const {
1279
1279
if (auto Err = NameOrErr.takeError ())
1280
1280
return std::move (Err);
1281
1281
1282
- uint32_t SymbolIdx = OwningObjectPtr ->getSymbolIndex (getEntryAddress ());
1282
+ uint32_t SymbolIdx = getObject () ->getSymbolIndex (getEntryAddress ());
1283
1283
if (!NumberOfAuxEntries) {
1284
1284
return createError (" csect symbol \" " + *NameOrErr + " \" with index " +
1285
1285
Twine (SymbolIdx) + " contains no auxiliary entry" );
1286
1286
}
1287
1287
1288
- if (!OwningObjectPtr ->is64Bit ()) {
1288
+ if (!getObject () ->is64Bit ()) {
1289
1289
// In XCOFF32, the csect auxilliary entry is always the last auxiliary
1290
1290
// entry for the symbol.
1291
1291
uintptr_t AuxAddr = XCOFFObjectFile::getAdvancedSymbolEntryAddress (
@@ -1298,10 +1298,10 @@ Expected<XCOFFCsectAuxRef> XCOFFSymbolRef::getXCOFFCsectAuxRef() const {
1298
1298
for (uint8_t Index = NumberOfAuxEntries; Index > 0 ; --Index) {
1299
1299
uintptr_t AuxAddr = XCOFFObjectFile::getAdvancedSymbolEntryAddress (
1300
1300
getEntryAddress (), Index);
1301
- if (*OwningObjectPtr ->getSymbolAuxType (AuxAddr) ==
1301
+ if (*getObject () ->getSymbolAuxType (AuxAddr) ==
1302
1302
XCOFF::SymbolAuxType::AUX_CSECT) {
1303
1303
#ifndef NDEBUG
1304
- OwningObjectPtr ->checkSymbolEntryPointer (AuxAddr);
1304
+ getObject () ->checkSymbolEntryPointer (AuxAddr);
1305
1305
#endif
1306
1306
return XCOFFCsectAuxRef (viewAs<XCOFFCsectAuxEnt64>(AuxAddr));
1307
1307
}
@@ -1322,10 +1322,10 @@ Expected<StringRef> XCOFFSymbolRef::getName() const {
1322
1322
if (Entry32->NameInStrTbl .Magic != XCOFFSymbolRef::NAME_IN_STR_TBL_MAGIC)
1323
1323
return generateXCOFFFixedNameStringRef (Entry32->SymbolName );
1324
1324
1325
- return OwningObjectPtr ->getStringTableEntry (Entry32->NameInStrTbl .Offset );
1325
+ return getObject () ->getStringTableEntry (Entry32->NameInStrTbl .Offset );
1326
1326
}
1327
1327
1328
- return OwningObjectPtr ->getStringTableEntry (Entry64->Offset );
1328
+ return getObject () ->getStringTableEntry (Entry64->Offset );
1329
1329
}
1330
1330
1331
1331
// Explictly instantiate template classes.
0 commit comments