mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Remove section_rel_empty. Just compare begin() and end() instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205577 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -389,11 +389,6 @@ relocation_iterator COFFObjectFile::section_rel_end(DataRefImpl Ref) const {
|
||||
return relocation_iterator(RelocationRef(Ret, this));
|
||||
}
|
||||
|
||||
bool COFFObjectFile::section_rel_empty(DataRefImpl Ref) const {
|
||||
const coff_section *Sec = toSec(Ref);
|
||||
return Sec->NumberOfRelocations == 0;
|
||||
}
|
||||
|
||||
// Initialize the pointer to the symbol table.
|
||||
error_code COFFObjectFile::initSymbolTablePtr() {
|
||||
if (error_code EC = getObject(
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user