summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-30 03:41:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-30 03:41:26 +0000
commit0ad71d982c8b1023d6f5fc1c516c1e0900c75978 (patch)
treec20e71b0952121821fd287a05d8f9491fef58eb7 /llvm/lib/Object/MachOObjectFile.cpp
parentf69ac42ac401aa0b0f17d47eea9531ec0d566e98 (diff)
downloadbcm5719-llvm-0ad71d982c8b1023d6f5fc1c516c1e0900c75978.tar.gz
bcm5719-llvm-0ad71d982c8b1023d6f5fc1c516c1e0900c75978.zip
Move function to the only file that uses it.
llvm-svn: 241040
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 14f74c70a66..9763fabca82 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -770,30 +770,6 @@ MachOObjectFile::getRelocationTypeName(DataRefImpl Rel,
return std::error_code();
}
-bool MachOObjectFile::getRelocationHidden(DataRefImpl Rel) const {
- unsigned Arch = getArch();
- uint64_t Type = getRelocationType(Rel);
-
- // On arches that use the generic relocations, GENERIC_RELOC_PAIR
- // is always hidden.
- if (Arch == Triple::x86 || Arch == Triple::arm || Arch == Triple::ppc) {
- if (Type == MachO::GENERIC_RELOC_PAIR)
- return true;
- } else if (Arch == Triple::x86_64) {
- // On x86_64, X86_64_RELOC_UNSIGNED is hidden only when it follows
- // an X86_64_RELOC_SUBTRACTOR.
- if (Type == MachO::X86_64_RELOC_UNSIGNED && Rel.d.a > 0) {
- DataRefImpl RelPrev = Rel;
- RelPrev.d.a--;
- uint64_t PrevType = getRelocationType(RelPrev);
- if (PrevType == MachO::X86_64_RELOC_SUBTRACTOR)
- return true;
- }
- }
-
- return false;
-}
-
uint8_t MachOObjectFile::getRelocationLength(DataRefImpl Rel) const {
MachO::any_relocation_info RE = getRelocation(Rel);
return getAnyRelocationLength(RE);
OpenPOWER on IntegriCloud