diff options
author | Zachary Turner <zturner@google.com> | 2016-06-10 05:09:12 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-06-10 05:09:12 +0000 |
commit | 5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd (patch) | |
tree | 463ec56d93f2cc3a2ea42a1d798809a5290020ab /llvm/tools/llvm-readobj/COFFDumper.cpp | |
parent | 6a77a1c01f5f3f76546afd97c9aa1d2747bb7b6e (diff) | |
download | bcm5719-llvm-5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd.tar.gz bcm5719-llvm-5acb4ac6d7989e5f59dd6bc035cc1110b2c830dd.zip |
Add support for writing through StreamInterface.
This adds method and tests for writing to a PDB stream. With
this, even a PDB stream which is discontiguous can be treated
as a sequential stream of bytes for the purposes of writing.
Reviewed By: ruiu
Differential Revision: http://reviews.llvm.org/D21157
llvm-svn: 272369
Diffstat (limited to 'llvm/tools/llvm-readobj/COFFDumper.cpp')
-rw-r--r-- | llvm/tools/llvm-readobj/COFFDumper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-readobj/COFFDumper.cpp b/llvm/tools/llvm-readobj/COFFDumper.cpp index 79559b7f018..dc7fe0e33ec 100644 --- a/llvm/tools/llvm-readobj/COFFDumper.cpp +++ b/llvm/tools/llvm-readobj/COFFDumper.cpp @@ -969,7 +969,7 @@ void COFFDumper::printCodeViewSymbolsSubsection(StringRef Subsection, SectionContents); CVSymbolDumper CVSD(W, CVTD, std::move(CODD), opts::CodeViewSubsectionBytes); - ByteStream Stream(BinaryData); + ByteStream<> Stream(BinaryData); CVSymbolArray Symbols; StreamReader Reader(Stream); if (auto EC = Reader.readArray(Symbols, Reader.getLength())) { @@ -1077,7 +1077,7 @@ void COFFDumper::mergeCodeViewTypes(MemoryTypeTableBuilder &CVTypes) { error(object_error::parse_failed); ArrayRef<uint8_t> Bytes(reinterpret_cast<const uint8_t *>(Data.data()), Data.size()); - ByteStream Stream(Bytes); + ByteStream<> Stream(Bytes); CVTypeArray Types; StreamReader Reader(Stream); if (auto EC = Reader.readArray(Types, Reader.getLength())) { |