From 175b78b02e99b9d9d1299e0ab1fee9ef689f7ce7 Mon Sep 17 00:00:00 2001 From: Juergen Ributzka Date: Tue, 22 Jul 2014 21:42:46 +0000 Subject: [RuntimeDyld] Change the return type of decodeAddend to match the storage type. llvm-svn: 213686 --- llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h') diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h index 7d1dc0263db..ecbbf828251 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h @@ -52,8 +52,8 @@ protected: RuntimeDyldMachO(RTDyldMemoryManager *mm) : RuntimeDyldImpl(mm) {} /// Extract the addend encoded in the instruction. - uint64_t decodeAddend(uint8_t *LocalAddress, unsigned NumBytes, - uint32_t RelType) const; + int64_t decodeAddend(uint8_t *LocalAddress, unsigned NumBytes, + uint32_t RelType) const; /// Construct a RelocationValueRef representing the relocation target. /// For Symbols in known sections, this will return a RelocationValueRef @@ -138,7 +138,7 @@ protected: uint8_t *LocalAddress = Section.Address + Offset; unsigned NumBytes = 1 << Size; uint32_t RelType = Obj.getAnyRelocationType(RelInfo); - uint64_t Addend = impl().decodeAddend(LocalAddress, NumBytes, RelType); + int64_t Addend = impl().decodeAddend(LocalAddress, NumBytes, RelType); return RelocationEntry(SectionID, Offset, RelType, Addend, IsPCRel, Size); } -- cgit v1.2.3