Pass in non-Mach-O-specific parameters to the GetTargetRelocation method.

llvm-svn: 33816
This commit is contained in:
Bill Wendling 2007-02-03 02:39:40 +00:00
parent f382ea30fd
commit c27c70dc3d
1 changed files with 7 additions and 2 deletions

View File

@ -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);
}
}