[llvm-commits] [llvm] r43784 - in /llvm/trunk: include/llvm/Bitcode/Serialize.h lib/Bitcode/Writer/Serialize.cpp
Ted Kremenek
kremenek at apple.com
Tue Nov 6 14:22:25 PST 2007
Author: kremenek
Date: Tue Nov 6 16:22:25 2007
New Revision: 43784
URL: http://llvm.org/viewvc/llvm-project?rev=43784&view=rev
Log:
Serializer no longer automatically emits a root-level block in the bitstream.
Modified:
llvm/trunk/include/llvm/Bitcode/Serialize.h
llvm/trunk/lib/Bitcode/Writer/Serialize.cpp
Modified: llvm/trunk/include/llvm/Bitcode/Serialize.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Bitcode/Serialize.h?rev=43784&r1=43783&r2=43784&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Serialize.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Serialize.h Tue Nov 6 16:22:25 2007
@@ -31,8 +31,7 @@
MapTy PtrMap;
public:
- Serializer(BitstreamWriter& stream, unsigned BlockID = 8);
-
+ Serializer(BitstreamWriter& stream);
~Serializer();
template <typename T>
Modified: llvm/trunk/lib/Bitcode/Writer/Serialize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/Serialize.cpp?rev=43784&r1=43783&r2=43784&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/Serialize.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/Serialize.cpp Tue Nov 6 16:22:25 2007
@@ -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())
More information about the llvm-commits
mailing list