Rename one of the getOffset methods.

It is sufficiently different in that it returns an offset in the input
file, not the output section.

llvm-svn: 297290
This commit is contained in:
Rafael Espindola
2017-03-08 15:57:17 +00:00
parent 373c182a07
commit 35ae65ee2b
4 changed files with 7 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ size_t InputSectionBase::getSize() const {
return Data.size();
}
uint64_t InputSectionBase::getOffset() const {
uint64_t InputSectionBase::getOffsetInFile() const {
const uint8_t *FileStart = (const uint8_t *)File->MB.getBufferStart();
const uint8_t *SecStart = Data.begin();
return SecStart - FileStart;