summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2014-06-30 20:44:47 +0000
committerNick Kledzik <kledzik@apple.com>2014-06-30 20:44:47 +0000
commitb201cf8883a8669c78f20533a2c47b6a92142a78 (patch)
tree41245c0c9843caa130eedac1baed6eecd5675cf6 /lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
parentcdb4e64a20cd4c0bf6838234f5d11cc12ef6df74 (diff)
downloadbcm5719-llvm-b201cf8883a8669c78f20533a2c47b6a92142a78.tar.gz
bcm5719-llvm-b201cf8883a8669c78f20533a2c47b6a92142a78.zip
[mach-o] x86_64 relocation code review fixes
llvm-svn: 212068
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp')
-rw-r--r--lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp b/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
index cb4502030b8..fe9caec5c7d 100644
--- a/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
+++ b/lld/lib/ReaderWriter/MachO/ReferenceKinds.cpp
@@ -135,7 +135,7 @@ const Registry::KindStrings KindHandler_x86_64::kindStrings[] = {
LLD_KIND_STRING_ENTRY(delta64Anon),
LLD_KIND_STRING_END
};
-
+
bool KindHandler_x86_64::isCallSite(const Reference &ref) {
if (ref.kindNamespace() != Reference::KindNamespace::mach_o)
return false;
@@ -147,7 +147,8 @@ bool KindHandler_x86_64::isPointer(const Reference &ref) {
if (ref.kindNamespace() != Reference::KindNamespace::mach_o)
return false;
assert(ref.kindArch() == Reference::KindArch::x86_64);
- return (ref.kindValue() == pointer64);
+ Reference::KindValue kind = ref.kindValue();
+ return (kind == pointer64 || kind == pointer64Anon);
}
bool KindHandler_x86_64::isLazyImmediate(const Reference &ref) {
OpenPOWER on IntegriCloud