]> granicus.if.org Git - clang/commit
Bitcode: Decouple block info block state from reader.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 8 Nov 2016 04:17:11 +0000 (04:17 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 8 Nov 2016 04:17:11 +0000 (04:17 +0000)
commitcf26f429e818a308251ca9a54b88394e98642ccd
treefd5cbe8be973a01704700986e2d59e1f2f1c5a3a
parent97054171ba329891fa63df9b61414b60076b3142
Bitcode: Decouple block info block state from reader.

As proposed on llvm-dev:
http://lists.llvm.org/pipermail/llvm-dev/2016-October/106630.html

Move block info block state to a new class, BitstreamBlockInfo.
Clients may set the block info for a particular cursor with the
BitstreamCursor::setBlockInfo() method.

At this point BitstreamReader is not much more than a container for an
ArrayRef<uint8_t>, so remove it and replace all uses with direct uses
of memory buffers.

Differential Revision: https://reviews.llvm.org/D26259

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286207 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/CodeGen/ObjectFilePCHContainerOperations.h
include/clang/Frontend/PCHContainerOperations.h
include/clang/Serialization/Module.h
include/clang/Serialization/ModuleManager.h
lib/CodeGen/ObjectFilePCHContainerOperations.cpp
lib/Frontend/PCHContainerOperations.cpp
lib/Frontend/SerializedDiagnosticReader.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/GlobalModuleIndex.cpp
lib/Serialization/ModuleManager.cpp