Simplify interface of function that doesn't fail.

llvm-svn: 238700
This commit is contained in:
Rafael Espindola
2015-05-31 23:52:50 +00:00
parent c2c6018cce
commit a4d22472f3
7 changed files with 16 additions and 33 deletions

View File

@@ -37,11 +37,7 @@ std::error_code ObjectFile::printSymbolName(raw_ostream &OS,
return object_error::success;
}
std::error_code ObjectFile::getSymbolAlignment(DataRefImpl DRI,
uint32_t &Result) const {
Result = 0;
return object_error::success;
}
uint32_t ObjectFile::getSymbolAlignment(DataRefImpl DRI) const { return 0; }
section_iterator ObjectFile::getRelocatedSection(DataRefImpl Sec) const {
return section_iterator(SectionRef(Sec, this));