mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Pass in non-Mach-O-specific parameters to the GetTargetRelocation method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33816 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3da9981e16
commit
886b412fb0
@ -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
Block a user