File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
llvm/tools/llvm-objcopy/MachO Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ void MachOReader::setSymbolInRelocationInfo(Object &O) const {
222
222
// if we encounter an invalid relocation.
223
223
assert (SymbolNum >= 1 && SymbolNum <= Sections.size () &&
224
224
" Invalid section index." );
225
- Reloc.Section = Sections[SymbolNum - 1 ];
225
+ Reloc.Sec = Sections[SymbolNum - 1 ];
226
226
}
227
227
}
228
228
}
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ void MachOWriter::writeSections() {
243
243
if (!RelocInfo.Scattered ) {
244
244
const uint32_t SymbolNum = RelocInfo.Extern
245
245
? (*RelocInfo.Symbol )->Index
246
- : (*RelocInfo.Section )->Index ;
246
+ : (*RelocInfo.Sec )->Index ;
247
247
RelocInfo.setPlainRelocationSymbolNum (SymbolNum, IsLittleEndian);
248
248
}
249
249
if (IsLittleEndian != sys::IsLittleEndianHost)
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ struct RelocationInfo {
165
165
// The referenced symbol entry. Set if !Scattered && Extern.
166
166
Optional<const SymbolEntry *> Symbol;
167
167
// The referenced section. Set if !Scattered && !Extern.
168
- Optional<const Section *> Section ;
168
+ Optional<const Section *> Sec ;
169
169
// True if Info is a scattered_relocation_info.
170
170
bool Scattered;
171
171
// True if the r_symbolnum points to a section number (i.e. r_extern=0).
You can’t perform that action at this time.
0 commit comments