forked from OSchip/llvm-project
Pass in non-Mach-O-specific parameters to the GetTargetRelocation method.
llvm-svn: 33816
This commit is contained in:
parent
f382ea30fd
commit
c27c70dc3d
|
@ -726,8 +726,13 @@ void MachOWriter::CalculateRelocations(MachOSection &MOS) {
|
|||
TargetSection = MOSPtr->Index;
|
||||
MR.setResultPointer((void*)Offset);
|
||||
}
|
||||
|
||||
GetTargetRelocation(MR, MOS, *SectionList[TargetSection-1], Scattered);
|
||||
|
||||
OutputBuffer RelocOut(MOS.RelocBuffer, is64Bit, isLittleEndian);
|
||||
OutputBuffer SecOut(MOS.SectionData, is64Bit, isLittleEndian);
|
||||
MachOSection &To = *SectionList[TargetSection - 1];
|
||||
|
||||
MOS.nreloc += GetTargetRelocation(MR, MOS.Index, To.addr, To.Index,
|
||||
RelocOut, SecOut, Scattered);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue