From bf75685321f76ed7ee1948e3b8d80bbf2ada84d4 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 6 Nov 2007 22:22:25 +0000 Subject: Serializer no longer automatically emits a root-level block in the bitstream. llvm-svn: 43784 --- llvm/lib/Bitcode/Writer/Serialize.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'llvm/lib/Bitcode/Writer/Serialize.cpp') diff --git a/llvm/lib/Bitcode/Writer/Serialize.cpp b/llvm/lib/Bitcode/Writer/Serialize.cpp index 8e3bb1b1aad..4395b90a89d 100644 --- a/llvm/lib/Bitcode/Writer/Serialize.cpp +++ b/llvm/lib/Bitcode/Writer/Serialize.cpp @@ -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()) -- cgit v1.2.3