1
0
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:
Ted Kremenek 2007-11-06 22:22:25 +00:00
parent 844153d465
commit 8dedf8270e
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())