diff options
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp b/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp index 9da9c81..594739f 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/PDBFile.cpp @@ -289,13 +289,22 @@ Expected<DbiStream &> PDBFile::getPDBDbiStream() { Expected<TpiStream &> PDBFile::getPDBTpiStream() { if (!Tpi) { - Tpi.reset(new TpiStream(*this)); + Tpi.reset(new TpiStream(*this, StreamTPI)); if (auto EC = Tpi->reload()) return std::move(EC); } return *Tpi; } +Expected<TpiStream &> PDBFile::getPDBIpiStream() { + if (!Ipi) { + Ipi.reset(new TpiStream(*this, StreamIPI)); + if (auto EC = Ipi->reload()) + return std::move(EC); + } + return *Ipi; +} + Expected<PublicsStream &> PDBFile::getPDBPublicsStream() { if (!Publics) { auto DbiS = getPDBDbiStream(); |