diff options
author | Alex Orlov <aorlov@accesssoftek.com> | 2021-05-19 02:38:13 +0400 |
---|---|---|
committer | Alex Orlov <aorlov@accesssoftek.com> | 2021-05-19 02:38:13 +0400 |
commit | 4fedb3a613a3ebfb91f42b454e476c29cd05b8f5 (patch) | |
tree | fc84de0cd9d8b1557a3c9cf143beb6c698bf4618 /llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp | |
parent | 5f2b27666797c6462641434fee7ee010c77d22c0 (diff) | |
download | llvm-4fedb3a613a3ebfb91f42b454e476c29cd05b8f5.zip llvm-4fedb3a613a3ebfb91f42b454e476c29cd05b8f5.tar.gz llvm-4fedb3a613a3ebfb91f42b454e476c29cd05b8f5.tar.bz2 |
[symbolizer] Added StartAddress for the resolved function.
In many cases it is helpful to know at what address the resolved function starts.
This patch adds a new StartAddress member to the DILineInfo structure.
Reviewed By: jhenderson, dblaikie
Differential Revision: https://reviews.llvm.org/D102316
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp b/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp index d751999..a9c7883 100644 --- a/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp +++ b/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp @@ -282,6 +282,7 @@ SymbolizableObjectFile::symbolizeCode(object::SectionedAddress ModuleOffset, if (getNameFromSymbolTable(ModuleOffset.Address, FunctionName, Start, Size, FileName)) { LineInfo.FunctionName = FunctionName; + LineInfo.StartAddress = Start; if (LineInfo.FileName == DILineInfo::BadString && !FileName.empty()) LineInfo.FileName = FileName; } @@ -311,6 +312,7 @@ DIInliningInfo SymbolizableObjectFile::symbolizeInlinedCode( DILineInfo *LI = InlinedContext.getMutableFrame( InlinedContext.getNumberOfFrames() - 1); LI->FunctionName = FunctionName; + LI->StartAddress = Start; if (LI->FileName == DILineInfo::BadString && !FileName.empty()) LI->FileName = FileName; } |