[DebugInfo] Fix register variables not showing up in pdb.
authorZachary Turner <zturner@google.com>
Thu, 7 Dec 2017 22:51:16 +0000 (22:51 +0000)
committerZachary Turner <zturner@google.com>
Thu, 7 Dec 2017 22:51:16 +0000 (22:51 +0000)
commitecd2684ed705ec95083563256bed27ee33b0e0fc
tree419dfebf397aeffe832a66b442ec0e682b7b38ee
parent193429f0c8fb7ebc19b4293b937ad39db910b277
[DebugInfo] Fix register variables not showing up in pdb.

Previously, when linking against libcmt from the MSVC runtime,
lld-link /verbose would show "Ignoring unknown symbol record
with kind 0x1006".  It turns out this was because
TypeIndexDiscovery did not handle S_REGISTER records, so these
records were not getting properly remapped.

Patch by: Alexnadre Ganea
Differential Revision: https://reviews.llvm.org/D40919

llvm-svn: 320108
llvm/lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp
llvm/unittests/DebugInfo/CodeView/TypeIndexDiscoveryTest.cpp