mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 14:12:11 +00:00
[llvm-readobj] Fix incorrect printing of CV column info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301720 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acacdfca61
commit
3d4cc16e3a
@ -906,6 +906,7 @@ void COFFDumper::printCodeViewSymbolSection(StringRef SectionName,
|
||||
|
||||
ListScope S(W, "FilenameSegment");
|
||||
printFileNameForOffset("Filename", Entry.NameIndex);
|
||||
uint32_t ColumnIndex = 0;
|
||||
for (const auto &Line : Entry.LineNumbers) {
|
||||
if (Line.Offset >= LineInfo.header()->CodeSize) {
|
||||
error(object_error::parse_failed);
|
||||
@ -925,8 +926,9 @@ void COFFDumper::printCodeViewSymbolSection(StringRef SectionName,
|
||||
W.printNumber("LineNumberEndDelta", LI.getLineDelta());
|
||||
W.printBoolean("IsStatement", LI.isStatement());
|
||||
if (LineInfo.header()->Flags & HaveColumns) {
|
||||
W.printNumber("ColStart", Entry.Columns[0].StartColumn);
|
||||
W.printNumber("ColEnd", Entry.Columns[0].EndColumn);
|
||||
W.printNumber("ColStart", Entry.Columns[ColumnIndex].StartColumn);
|
||||
W.printNumber("ColEnd", Entry.Columns[ColumnIndex].EndColumn);
|
||||
++ColumnIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user