summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-07-29 19:57:11 +0000
committerJuergen Ributzka <juergen@apple.com>2014-07-29 19:57:11 +0000
commitfbd40c36eb6ac8cd80f1e7841fae5e5da5d0c92d (patch)
treeb420dadce6695b521e42a9fd0dbc229982fdb776 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
parent2056b38faca244fef034c920081d27951f8c364f (diff)
downloadbcm5719-llvm-fbd40c36eb6ac8cd80f1e7841fae5e5da5d0c92d.tar.gz
bcm5719-llvm-fbd40c36eb6ac8cd80f1e7841fae5e5da5d0c92d.zip
[RuntimeDyld][AArch64] Make encode/decodeAddend more typesafe by using the relocation enum type. NFCI.
llvm-svn: 214204
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
index 009409a1936..920b999fa08 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
@@ -28,7 +28,7 @@ using namespace llvm::object;
namespace llvm {
int64_t RuntimeDyldMachO::decodeAddend(uint8_t *LocalAddress, unsigned NumBytes,
- uint32_t RelType) const {
+ MachO::RelocationInfoType) const {
int64_t Addend = 0;
memcpy(&Addend, LocalAddress, NumBytes);
return Addend;
OpenPOWER on IntegriCloud