This is an archive of the discontinued LLVM Phabricator instance.

Make llvm-pdbdump print column info when available
ClosedPublic

Authored by amccarth on Aug 17 2016, 3:09 PM.

Details

Summary

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.

I don't see many tests for llvm-pdbdump, so it's not obvious to me where or how a test for this should be written. Tested locally on a couple PDBs and noted that it gracefully displays line tables with and without column info.

Diff Detail

Repository
rL LLVM

Event Timeline

amccarth updated this revision to Diff 68428.Aug 17 2016, 3:09 PM
amccarth retitled this revision from to Make llvm-pdbdump print column info when available.
amccarth updated this object.
amccarth added a reviewer: rnk.
amccarth added a subscriber: llvm-commits.
rnk accepted this revision.Aug 17 2016, 4:07 PM
rnk edited edge metadata.

lgtm w/ nit

tools/llvm-pdbdump/CompilandDumper.cpp
82 ↗(On Diff #68428)

Indentation looks off

This revision is now accepted and ready to land.Aug 17 2016, 4:07 PM
amccarth updated this revision to Diff 68445.Aug 17 2016, 4:07 PM
amccarth edited edge metadata.

Formatting fixed. (git clang-format isn't happy that my default version of Python is 3.x)

This revision was automatically updated to reflect the committed changes.