diff options
author | Daniel Jasper <djasper@google.com> | 2017-05-03 07:29:25 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2017-05-03 07:29:25 +0000 |
commit | dff096f217542fc12a69c228536d5b555cb23912 (patch) | |
tree | e47fed572e4212072a742d6d684a07f0ef038e45 /llvm/lib/Support/BinaryStreamWriter.cpp | |
parent | 726701b0ed67c400bc41fe08feb8a19668b59cbf (diff) | |
download | bcm5719-llvm-dff096f217542fc12a69c228536d5b555cb23912.tar.gz bcm5719-llvm-dff096f217542fc12a69c228536d5b555cb23912.zip |
Revert r301986 (and subsequent r301987).
The patch is failing to add StringTableStreamBuilder.h, but that isn't
even discovered because the corresponding StringTableStreamBuilder.cpp
isn't added to any CMakeLists.txt file and thus never built. I think
this patch is just incomplete.
llvm-svn: 302002
Diffstat (limited to 'llvm/lib/Support/BinaryStreamWriter.cpp')
-rw-r--r-- | llvm/lib/Support/BinaryStreamWriter.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Support/BinaryStreamWriter.cpp b/llvm/lib/Support/BinaryStreamWriter.cpp index d78dbc68f59..d60b75642d0 100644 --- a/llvm/lib/Support/BinaryStreamWriter.cpp +++ b/llvm/lib/Support/BinaryStreamWriter.cpp @@ -59,19 +59,6 @@ Error BinaryStreamWriter::writeStreamRef(BinaryStreamRef Ref, uint32_t Length) { return Error::success(); } -std::pair<BinaryStreamWriter, BinaryStreamWriter> -BinaryStreamWriter::split(uint32_t Off) const { - assert(getLength() >= Off); - - WritableBinaryStreamRef First = Stream.drop_front(Offset); - - WritableBinaryStreamRef Second = First.drop_front(Off); - First = First.keep_front(Off); - BinaryStreamWriter W1{First}; - BinaryStreamWriter W2{Second}; - return std::make_pair(W1, W2); -} - Error BinaryStreamWriter::padToAlignment(uint32_t Align) { uint32_t NewOffset = alignTo(Offset, Align); if (NewOffset > getLength()) |