]> granicus.if.org Git - llvm/commit
[BinaryStream] Support growable streams.
authorZachary Turner <zturner@google.com>
Mon, 27 Nov 2017 18:48:37 +0000 (18:48 +0000)
committerZachary Turner <zturner@google.com>
Mon, 27 Nov 2017 18:48:37 +0000 (18:48 +0000)
commit81a153c99a29006cf55b31f0ba898faf3ecd02b5
tree7eb7f5f8569f25bde5c31e5d9c9908b57d6fb668
parent5f26e59f298a50e931cc169cb04a157299940371
[BinaryStream] Support growable streams.

The existing library assumed that a stream's length would never
change.  This makes some things simpler, but it's not flexible
enough for what we need, especially for writable streams where
what you really want is for each call to write to actually append.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319070 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/StringExtras.h
include/llvm/Support/BinaryByteStream.h
include/llvm/Support/BinaryItemStream.h
include/llvm/Support/BinaryStream.h
include/llvm/Support/BinaryStreamRef.h
lib/DebugInfo/MSF/MappedBlockStream.cpp
lib/Support/BinaryStreamRef.cpp
lib/Support/BinaryStreamWriter.cpp
unittests/DebugInfo/MSF/MappedBlockStreamTest.cpp
unittests/Support/BinaryStreamTest.cpp