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

@@ -107,7 +107,7 @@ std::string elf::ObjectFile<ELFT>::getLineInfo(InputSectionBase *S,
// section. See comments for ObjectInfo class.
DILineInfo Info;
Tbl->getFileLineInfoForAddress(
S->getOffset() + Offset, nullptr,
S->getOffsetInFile() + Offset, nullptr,
DILineInfoSpecifier::FileLineInfoKind::AbsoluteFilePath, Info);
if (Info.Line == 0)
return "";