diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-29 19:03:21 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-29 19:03:21 +0000 |
commit | ca0e73610056110e9a175c14dd82d6d616fd830f (patch) | |
tree | 23b6f336b92dfa75f52e70c5209b2a45be8cab1e /lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | |
parent | f2e83499fcc41484cb5dac073c4fe87525926d2b (diff) | |
download | external_llvm-ca0e73610056110e9a175c14dd82d6d616fd830f.zip external_llvm-ca0e73610056110e9a175c14dd82d6d616fd830f.tar.gz external_llvm-ca0e73610056110e9a175c14dd82d6d616fd830f.tar.bz2 |
Use a RelocationRef instead of a relocation_iterator.
No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 9a6048c..ddac59f 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -214,14 +214,14 @@ bool RuntimeDyldMachO::resolveARMRelocation(uint8_t *LocalAddress, } void RuntimeDyldMachO::processRelocationRef(unsigned SectionID, - relocation_iterator RelI, + RelocationRef RelI, ObjectImage &Obj, ObjSectionToIDMap &ObjSectionToID, const SymbolTableMap &Symbols, StubMap &Stubs) { const ObjectFile *OF = Obj.getObjectFile(); const MachOObjectFile *MachO = static_cast<const MachOObjectFile*>(OF); - macho::RelocationEntry RE = MachO->getRelocation(RelI->getRawDataRefImpl()); + macho::RelocationEntry RE = MachO->getRelocation(RelI.getRawDataRefImpl()); uint32_t RelType = MachO->getAnyRelocationType(RE); RelocationValueRef Value; @@ -233,7 +233,7 @@ void RuntimeDyldMachO::processRelocationRef(unsigned SectionID, if (isExtern) { // Obtain the symbol name which is referenced in the relocation SymbolRef Symbol; - RelI->getSymbol(Symbol); + RelI.getSymbol(Symbol); StringRef TargetName; Symbol.getName(TargetName); // First search for the symbol in the local symbol table @@ -277,7 +277,7 @@ void RuntimeDyldMachO::processRelocationRef(unsigned SectionID, } uint64_t Offset; - RelI->getOffset(Offset); + RelI.getOffset(Offset); if (Arch == Triple::arm && (RelType & 0xf) == macho::RIT_ARM_Branch24Bit) { // This is an ARM branch relocation, need to use a stub function. |