diff options
author | Zachary Turner <zturner@google.com> | 2017-06-02 19:49:14 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-06-02 19:49:14 +0000 |
commit | 92dcdda623326bfd97a5833544e396fa739e2a29 (patch) | |
tree | 26ab0c07be6f8c1f067a59c4091d7a43f19f2fb5 /llvm/lib/DebugInfo/PDB/Native/PDBStringTable.cpp | |
parent | 3440bc37ffc9221a21e9bae540d410279ced283b (diff) | |
download | llvm-92dcdda623326bfd97a5833544e396fa739e2a29.zip llvm-92dcdda623326bfd97a5833544e396fa739e2a29.tar.gz llvm-92dcdda623326bfd97a5833544e396fa739e2a29.tar.bz2 |
[CodeView] Support CodeView subsections in any order.
Previously we would expect certain subsections to appear
in a certain order because some subsections would reference
other subsections, but in practice we need to support
arbitrary orderings since some object file and PDB file
producers generate them this way. This also paves the
way for supporting Yaml <-> Object File conversion of
CodeView, since Object Files typically have quite a
large number of subsections in their debug info.
Differential Revision: https://reviews.llvm.org/D33807
llvm-svn: 304588
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Native/PDBStringTable.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Native/PDBStringTable.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/PDBStringTable.cpp b/llvm/lib/DebugInfo/PDB/Native/PDBStringTable.cpp index e84573f..6013c34 100644 --- a/llvm/lib/DebugInfo/PDB/Native/PDBStringTable.cpp +++ b/llvm/lib/DebugInfo/PDB/Native/PDBStringTable.cpp @@ -56,6 +56,10 @@ Error PDBStringTable::readStrings(BinaryStreamReader &Reader) { return Error::success(); } +codeview::DebugStringTableSubsectionRef PDBStringTable::getStringTable() const { + return Strings; +} + Error PDBStringTable::readHashTable(BinaryStreamReader &Reader) { const support::ulittle32_t *HashCount; if (auto EC = Reader.readObject(HashCount)) |