summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
diff options
context:
space:
mode:
authorSimon Dardis <simon.dardis@imgtec.com>2016-12-07 11:41:23 +0000
committerSimon Dardis <simon.dardis@imgtec.com>2016-12-07 11:41:23 +0000
commit615bac37cdc026d5cc2a695837eada4a5e508628 (patch)
tree006083285e74b918abf6b80e48ec69622b47b476 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
parent6dbc8d5a0cb6d5eef1cf4a95c9744944b38f4684 (diff)
downloadbcm5719-llvm-615bac37cdc026d5cc2a695837eada4a5e508628.tar.gz
bcm5719-llvm-615bac37cdc026d5cc2a695837eada4a5e508628.zip
[mips][rtdyld] Merge code to write relocated values to the section. NFC
Preparation work for implementing N32 support. Patch By: Daniel Sanders Reviewers: vkalintiris, atanasyan Differential Revision: https://reviews.llvm.org/D27460 llvm-svn: 288900
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
index 85648eb3ace..b192b32ac7d 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
@@ -62,13 +62,15 @@ class RuntimeDyldELF : public RuntimeDyldImpl {
uint64_t Value, uint32_t Type, int64_t Addend,
uint64_t SymOffset, SID SectionID);
+ int64_t evaluateMIPS32Relocation(const SectionEntry &Section, uint64_t Offset,
+ uint64_t Value, uint32_t Type);
int64_t evaluateMIPS64Relocation(const SectionEntry &Section,
uint64_t Offset, uint64_t Value,
uint32_t Type, int64_t Addend,
uint64_t SymOffset, SID SectionID);
- void applyMIPS64Relocation(uint8_t *TargetPtr, int64_t CalculatedValue,
- uint32_t Type);
+ void applyMIPSRelocation(uint8_t *TargetPtr, int64_t CalculatedValue,
+ uint32_t Type);
unsigned getMaxStubSize() override {
if (Arch == Triple::aarch64 || Arch == Triple::aarch64_be)
OpenPOWER on IntegriCloud