Serializer no longer automatically emits a root-level block in the bitstream.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43784 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2007-11-06 22:22:25 +00:00
parent b12a82dbf4
commit 68dd3fbe5b
2 changed files with 3 additions and 8 deletions

View File

@ -31,8 +31,7 @@ class Serializer {
MapTy PtrMap;
public:
Serializer(BitstreamWriter& stream, unsigned BlockID = 8);
Serializer(BitstreamWriter& stream);
~Serializer();
template <typename T>

View File

@ -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())