@@ -946,15 +946,15 @@ CieRecord *EhOutputSection<ELFT>::addCie(SectionPiece &Piece,
946
946
EhInputSection<ELFT> *Sec,
947
947
ArrayRef<RelTy> &Rels) {
948
948
const endianness E = ELFT::TargetEndianness;
949
- if (read32<E>(Piece.Data .data () + 4 ) != 0 )
949
+ if (read32<E>(Piece.data () .data () + 4 ) != 0 )
950
950
fatal (" CIE expected at beginning of .eh_frame: " + Sec->getSectionName ());
951
951
952
952
SymbolBody *Personality = nullptr ;
953
953
if (const RelTy *Rel = getReloc (Piece.InputOff , Piece.size (), Rels))
954
954
Personality = &Sec->getFile ()->getRelocTargetSym (*Rel);
955
955
956
956
// Search for an existing CIE by CIE contents/relocation target pair.
957
- CieRecord *Cie = &CieMap[{Piece.Data , Personality}];
957
+ CieRecord *Cie = &CieMap[{Piece.data () , Personality}];
958
958
959
959
// If not found, create a new one.
960
960
if (Cie->Piece == nullptr ) {
@@ -995,11 +995,11 @@ void EhOutputSection<ELFT>::addSectionAux(EhInputSection<ELFT> *Sec,
995
995
DenseMap<size_t , CieRecord *> OffsetToCie;
996
996
for (SectionPiece &Piece : Sec->Pieces ) {
997
997
// The empty record is the end marker.
998
- if (Piece.Data . size () == 4 )
998
+ if (Piece.size () == 4 )
999
999
return ;
1000
1000
1001
1001
size_t Offset = Piece.InputOff ;
1002
- uint32_t ID = read32<E>(Piece.Data .data () + 4 );
1002
+ uint32_t ID = read32<E>(Piece.data () .data () + 4 );
1003
1003
if (ID == 0 ) {
1004
1004
OffsetToCie[Offset] = addCie (Piece, Sec, Rels);
1005
1005
continue ;
@@ -1106,11 +1106,11 @@ template <class ELFT> void EhOutputSection<ELFT>::writeTo(uint8_t *Buf) {
1106
1106
const endianness E = ELFT::TargetEndianness;
1107
1107
for (CieRecord *Cie : Cies) {
1108
1108
size_t CieOffset = Cie->Piece ->OutputOff ;
1109
- writeCieFde<ELFT>(Buf + CieOffset, Cie->Piece ->Data );
1109
+ writeCieFde<ELFT>(Buf + CieOffset, Cie->Piece ->data () );
1110
1110
1111
1111
for (SectionPiece *Fde : Cie->FdePieces ) {
1112
1112
size_t Off = Fde->OutputOff ;
1113
- writeCieFde<ELFT>(Buf + Off, Fde->Data );
1113
+ writeCieFde<ELFT>(Buf + Off, Fde->data () );
1114
1114
1115
1115
// FDE's second word should have the offset to an associated CIE.
1116
1116
// Write it.
@@ -1126,7 +1126,7 @@ template <class ELFT> void EhOutputSection<ELFT>::writeTo(uint8_t *Buf) {
1126
1126
// we obtain two addresses and pass them to EhFrameHdr object.
1127
1127
if (Out<ELFT>::EhFrameHdr) {
1128
1128
for (CieRecord *Cie : Cies) {
1129
- uint8_t Enc = getFdeEncoding<ELFT>(Cie->Piece ->Data );
1129
+ uint8_t Enc = getFdeEncoding<ELFT>(Cie->Piece ->data () );
1130
1130
for (SectionPiece *Fde : Cie->FdePieces ) {
1131
1131
uintX_t Pc = getFdePc (Buf, Fde->OutputOff , Enc);
1132
1132
uintX_t FdeVA = this ->getVA () + Fde->OutputOff ;
@@ -1170,7 +1170,7 @@ void MergeOutputSection<ELFT>::addSection(InputSectionBase<ELFT> *C) {
1170
1170
for (SectionPiece &Piece : Sec->Pieces ) {
1171
1171
if (!Piece.Live )
1172
1172
continue ;
1173
- uintX_t OutputOffset = Builder.add (toStringRef (Piece.Data ));
1173
+ uintX_t OutputOffset = Builder.add (toStringRef (Piece.data () ));
1174
1174
if (!IsString || !shouldTailMerge ())
1175
1175
Piece.OutputOff = OutputOffset;
1176
1176
}
0 commit comments