mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Serializer no longer automatically emits a root-level block in the bitstream.
llvm-svn: 43784
This commit is contained in:
parent
844153d465
commit
8dedf8270e
@ -31,8 +31,7 @@ class Serializer {
|
||||
MapTy PtrMap;
|
||||
|
||||
public:
|
||||
Serializer(BitstreamWriter& stream, unsigned BlockID = 8);
|
||||
|
||||
Serializer(BitstreamWriter& stream);
|
||||
~Serializer();
|
||||
|
||||
template <typename T>
|
||||
|
@ -16,12 +16,8 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
Serializer::Serializer(BitstreamWriter& stream, unsigned BlockID)
|
||||
: Stream(stream), BlockLevel(0) {
|
||||
|
||||
if (BlockID >= 8)
|
||||
EnterBlock(8,3);
|
||||
}
|
||||
Serializer::Serializer(BitstreamWriter& stream)
|
||||
: Stream(stream), BlockLevel(0) {}
|
||||
|
||||
Serializer::~Serializer() {
|
||||
if (inRecord())
|
||||
|
Loading…
Reference in New Issue
Block a user