summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp b/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp
index d8bae59195c..aa3547c93c4 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp
@@ -99,27 +99,6 @@ Error TpiStreamBuilder::finalizeMsfLayout() {
return Error::success();
}
-Expected<std::unique_ptr<TpiStream>> TpiStreamBuilder::build(PDBFile &File) {
- if (!VerHeader.hasValue())
- return make_error<RawError>(raw_error_code::unspecified,
- "Missing TPI Stream Version");
- if (auto EC = finalize())
- return std::move(EC);
-
- auto StreamData = MappedBlockStream::createIndexedStream(
- File.getMsfLayout(), File.getMsfBuffer(), Idx);
- auto Tpi = llvm::make_unique<TpiStream>(File, std::move(StreamData));
- Tpi->Header = Header;
- Tpi->TypeRecords = VarStreamArray<codeview::CVType>(TypeRecordStream);
- if (HashValueStream) {
- Tpi->HashStream = std::move(HashValueStream);
- StreamReader HSR(*Tpi->HashStream);
- if (auto EC = HSR.readArray(Tpi->HashValues, TypeRecords.size()))
- return std::move(EC);
- }
- return std::move(Tpi);
-}
-
Error TpiStreamBuilder::commit(const msf::MSFLayout &Layout,
const msf::WritableStream &Buffer) {
if (auto EC = finalize())
OpenPOWER on IntegriCloud