mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +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:
@@ -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 "";
|
||||
|
||||
Reference in New Issue
Block a user