[llvm-readobj] Update readobj to re-use parsing code.
authorZachary Turner <zturner@google.com>
Wed, 3 May 2017 17:11:11 +0000 (17:11 +0000)
committerZachary Turner <zturner@google.com>
Wed, 3 May 2017 17:11:11 +0000 (17:11 +0000)
commit2d5c2cd3ce208ebfac2bceb4c73157bef4e00fdc
treef3a5c0de380443aa47cc2d67fc0badacbceaf3d9
parent761bcdaf066f55075989dac2dbf0ebb148198ee0
[llvm-readobj] Update readobj to re-use parsing code.

llvm-readobj hand rolls some CodeView parsing code for string
tables, so this patch updates it to re-use some of the newly
introduced parsing code in LLVMDebugInfoCodeView.

Differential Revision: https://reviews.llvm.org/D32772

llvm-svn: 302052
14 files changed:
llvm/include/llvm/DebugInfo/CodeView/StringTable.h
llvm/include/llvm/DebugInfo/CodeView/SymbolVisitorDelegate.h
llvm/include/llvm/DebugInfo/PDB/Native/PDBStringTable.h
llvm/include/llvm/Support/BinaryStreamRef.h
llvm/lib/DebugInfo/CodeView/StringTable.cpp
llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
llvm/lib/DebugInfo/PDB/Native/PDBStringTable.cpp
llvm/tools/llvm-pdbdump/Diff.cpp
llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp
llvm/tools/llvm-pdbdump/YAMLOutputStyle.cpp
llvm/tools/llvm-readobj/COFFDumper.cpp
llvm/tools/llvm-readobj/llvm-readobj.h
llvm/unittests/DebugInfo/PDB/ErrorChecking.h
llvm/unittests/DebugInfo/PDB/StringTableBuilderTest.cpp