mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user