diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-29 17:24:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-29 17:24:34 +0000 |
commit | 87b5017139e9d8ac9b046b3284a9cc68c76185d6 (patch) | |
tree | ceda3137641902b9f35259515b770c20cf4cf9e2 /lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | |
parent | efa91f6475f6e96552986104ab4857db46185a2a (diff) | |
download | llvm-87b5017139e9d8ac9b046b3284a9cc68c76185d6.tar.gz llvm-87b5017139e9d8ac9b046b3284a9cc68c76185d6.tar.bz2 llvm-87b5017139e9d8ac9b046b3284a9cc68c76185d6.tar.xz |
Propagate relocation info to resolveRelocation.
This gets most of the MCJITs tests passing with MachO.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180716 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h index 8f1658cbdf..c82b2f93ce 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h @@ -55,12 +55,15 @@ protected: const SymbolTableMap &Symbols, StubMap &Stubs); + void resolveRelocation(const SectionEntry &Section, + uint64_t Offset, + uint64_t Value, + uint32_t Type, + int64_t Addend, + bool isPCRel, + unsigned Size); public: - virtual void resolveRelocation(const SectionEntry &Section, - uint64_t Offset, - uint64_t Value, - uint32_t Type, - int64_t Addend); + virtual void resolveRelocation(const RelocationEntry &RE, uint64_t Value); RuntimeDyldMachO(RTDyldMemoryManager *mm) : RuntimeDyldImpl(mm) {} |