diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-04-03 22:42:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-04-03 22:42:22 +0000 |
commit | 77314aa014599282f52c0f425b7b90d8ef9ad02f (patch) | |
tree | 3cc69d98f067850aa3883eda0c6838450b286c88 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 4f010d2f660f48df779163b8b88a864c3c4c2ceb (diff) | |
download | llvm-77314aa014599282f52c0f425b7b90d8ef9ad02f.zip llvm-77314aa014599282f52c0f425b7b90d8ef9ad02f.tar.gz llvm-77314aa014599282f52c0f425b7b90d8ef9ad02f.tar.bz2 |
Remove section_rel_empty. Just compare begin() and end() instead.
llvm-svn: 205577
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 12132a4..0f519da 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -791,16 +791,6 @@ MachOObjectFile::section_rel_end(DataRefImpl Sec) const { return relocation_iterator(RelocationRef(Ret, this)); } -bool MachOObjectFile::section_rel_empty(DataRefImpl Sec) const { - if (is64Bit()) { - MachO::section_64 Sect = getSection64(Sec); - return Sect.nreloc == 0; - } else { - MachO::section Sect = getSection(Sec); - return Sect.nreloc == 0; - } -} - void MachOObjectFile::moveRelocationNext(DataRefImpl &Rel) const { const MachO::any_relocation_info *P = reinterpret_cast<const MachO::any_relocation_info *>(Rel.p); |