Refactor Symbol visitor code.
authorZachary Turner <zturner@google.com>
Fri, 7 Oct 2016 21:34:46 +0000 (21:34 +0000)
committerZachary Turner <zturner@google.com>
Fri, 7 Oct 2016 21:34:46 +0000 (21:34 +0000)
commit0d8407447d581dbc91ea2b764a6202372290f5b1
tree37aaf2a202d7c83ea81b41becb3457fb6fe2f866
parent78550e3991c2aba525e201dbc4bfb437e6777d56
Refactor Symbol visitor code.

Type visitor code had already been refactored previously to
decouple the visitor and the visitor callback interface.  This
was necessary for having the flexibility to visit in different
ways (for example, dumping to yaml, reading from yaml, dumping
to ScopedPrinter, etc).

This patch merely implements the same visitation pattern for
symbol records that has already been implemented for type records.

llvm-svn: 283609
llvm/include/llvm/DebugInfo/CodeView/CVSymbolVisitor.h
llvm/include/llvm/DebugInfo/CodeView/SymbolDeserializer.h [new file with mode: 0644]
llvm/include/llvm/DebugInfo/CodeView/SymbolDumper.h
llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h
llvm/include/llvm/DebugInfo/CodeView/SymbolVisitorCallbackPipeline.h [new file with mode: 0644]
llvm/include/llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h [new file with mode: 0644]
llvm/lib/DebugInfo/CodeView/CMakeLists.txt
llvm/lib/DebugInfo/CodeView/CVSymbolVisitor.cpp [new file with mode: 0644]
llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp
llvm/tools/llvm-readobj/COFFDumper.cpp