[pdb] Make YamlTypeDumperCallbacks reuse *this.
authorZachary Turner <zturner@google.com>
Thu, 8 Sep 2016 18:36:55 +0000 (18:36 +0000)
committerZachary Turner <zturner@google.com>
Thu, 8 Sep 2016 18:36:55 +0000 (18:36 +0000)
commit22b652dbf868a3f051dc91687ace4097f96df476
treeac4a3d44babd9a22e039f0e9e98dd3d8dd3ad5d4
parent35377f88f583e318495e9b754a9f16e26aaa10da
[pdb] Make YamlTypeDumperCallbacks reuse *this.

Previously we were making new instances of YamlTypeDumperCallbacks
in order to recurse down and serialize / deserialize nested
records such as field lists.  This meant you could not pass
context from a higher operation to a lower operation because
it would be using a new instance of the visitor callback
delegate.

YAMLIO library was updated to support context-sensitive mappings,
so now we can reuse the same instance of the visitor callback
delegate even for nested operations.

llvm-svn: 280978
llvm/tools/llvm-pdbdump/CodeViewYaml.cpp
llvm/tools/llvm-pdbdump/CodeViewYaml.h