diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-02-03 02:39:40 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-02-03 02:39:40 +0000 |
commit | 886b412fb0baa3c2fab36fc1f2a46f53bc453f62 (patch) | |
tree | 1e0b67a6130cd86b3a096d3e109bf0f764ff6520 /lib | |
parent | 3da9981e167a1b8f6660d1dffbe033ba4f8dd218 (diff) | |
download | llvm-886b412fb0baa3c2fab36fc1f2a46f53bc453f62.tar.gz llvm-886b412fb0baa3c2fab36fc1f2a46f53bc453f62.tar.bz2 llvm-886b412fb0baa3c2fab36fc1f2a46f53bc453f62.tar.xz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/MachOWriter.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp index bd7c536496..d5958525a9 100644 --- a/lib/CodeGen/MachOWriter.cpp +++ b/lib/CodeGen/MachOWriter.cpp @@ -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); } } |