Remove section_rel_empty. Just compare begin() and end() instead.

llvm-svn: 205577
This commit is contained in:
Rafael Espindola
2014-04-03 22:42:22 +00:00
parent 4f010d2f66
commit 77314aa014
7 changed files with 5 additions and 33 deletions

View File

@@ -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(