[PATCH] D23629: Make llvm-pdbdump print column info when available

Adrian McCarthy via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 16:09:07 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL279001: Make llvm-pdbdump print column info when available (authored by amccarth).

Changed prior to commit:
  https://reviews.llvm.org/D23629?vs=68445&id=68446#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23629

Files:
  llvm/trunk/tools/llvm-pdbdump/CompilandDumper.cpp

Index: llvm/trunk/tools/llvm-pdbdump/CompilandDumper.cpp
===================================================================
--- llvm/trunk/tools/llvm-pdbdump/CompilandDumper.cpp
+++ llvm/trunk/tools/llvm-pdbdump/CompilandDumper.cpp
@@ -76,6 +76,15 @@
         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();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23629.68446.patch
Type: text/x-patch
Size: 895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160817/404ad531/attachment.bin>


More information about the llvm-commits mailing list