]> granicus.if.org Git - llvm/commit
[llvm-pdbutil] Fix some dumping issues.
authorZachary Turner <zturner@google.com>
Thu, 17 Aug 2017 20:04:51 +0000 (20:04 +0000)
committerZachary Turner <zturner@google.com>
Thu, 17 Aug 2017 20:04:51 +0000 (20:04 +0000)
commit6035f1ffb5f81e33b1c29971d62ba8e65808a27c
tree34d64c9ae0245687d86a1833d57c33575a6eedc5
parent54e28fe2aaad14fa2ea665cd0bff49a218a4c8b6
[llvm-pdbutil] Fix some dumping issues.

When dumping, we were treating the S_INLINESITESYM as referring
to a type record, when it actually refers to an id record.  We
had this correct in TypeIndexDiscovery, so our merging algorithm
should be fine, but we had it wrong in the dumper, which means it
would appear to work most of the time, unless the index was out
of bounds in the type stream, when it would fail.  Fixed this, and
audited a few other cases to make them match the behavior in
TypeIndexDiscovery.

Also, I've now observed a new symbol record with kind 0x1168 which
I have no clue what it is, so to avoid crashing we have to just
print "Unknown Symbol Kind".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311117 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/CodeView/LazyRandomTypeCollection.cpp
tools/llvm-pdbutil/MinimalSymbolDumper.cpp