mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
Make llvm-pdbdump print column info when available
llvm-pdbdump already had code to retrieve column information in the line tables, but it wasn't using it. Most Microsoft PDBs don't seem to have column info, so this wasn't missed. But Clang includes column info by default (at least for now), and being able to see that is useful for ensuring we get the column info correct. Differential Revision: https://reviews.llvm.org/D23629 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0f699212af
commit
03c1f4bfa4
@ -76,6 +76,15 @@ void CompilandDumper::start(const PDBSymbolCompiland &Symbol,
|
||||
if (LineStart != LineEnd)
|
||||
WithColor(Printer, StatementColor).get() << " - " << LineEnd;
|
||||
|
||||
uint32_t ColumnStart = Line->getColumnNumber();
|
||||
uint32_t ColumnEnd = Line->getColumnNumberEnd();
|
||||
if (ColumnStart != 0 || ColumnEnd != 0) {
|
||||
Printer << ", Column: ";
|
||||
WithColor(Printer, StatementColor).get() << ColumnStart;
|
||||
if (ColumnEnd != ColumnStart)
|
||||
WithColor(Printer, StatementColor).get() << " - " << ColumnEnd;
|
||||
}
|
||||
|
||||
Printer << ", Address: ";
|
||||
if (Line->getLength() > 0) {
|
||||
uint64_t AddrStart = Line->getVirtualAddress();
|
||||
|
Loading…
Reference in New Issue
Block a user