[llvm-commits] [llvm] r43772 - in /llvm/trunk: include/llvm/Bitcode/Serialize.h lib/Bitcode/Writer/Serialize.cpp
Ted Kremenek
kremenek at apple.com
Tue Nov 6 11:49:50 PST 2007
Author: kremenek
Date: Tue Nov 6 13:49:50 2007
New Revision: 43772
URL: http://llvm.org/viewvc/llvm-project?rev=43772&view=rev
Log:
Renamed "Flush()" to "FlushRecord()".
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=43772&r1=43771&r2=43772&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Bitcode/Serialize.h (original)
+++ llvm/trunk/include/llvm/Bitcode/Serialize.h Tue Nov 6 13:49:50 2007
@@ -54,7 +54,7 @@
if (ptr) SerializeTrait<T>::Emit(*this,*ptr);
}
- void Flush() { if (inRecord()) EmitRecord(); }
+ void FlushRecord() { if (inRecord()) EmitRecord(); }
void EnterBlock(unsigned BlockID = 8, unsigned CodeLen = 3);
void ExitBlock();
Modified: llvm/trunk/lib/Bitcode/Writer/Serialize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/Serialize.cpp?rev=43772&r1=43771&r2=43772&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/Serialize.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/Serialize.cpp Tue Nov 6 13:49:50 2007
@@ -29,7 +29,7 @@
while (BlockLevel > 0)
Stream.ExitBlock();
-
+
Stream.FlushToWord();
}
@@ -40,7 +40,7 @@
}
void Serializer::EnterBlock(unsigned BlockID,unsigned CodeLen) {
- Flush();
+ FlushRecord();
Stream.EnterSubblock(BlockID,CodeLen);
++BlockLevel;
}
@@ -48,7 +48,7 @@
void Serializer::ExitBlock() {
assert (BlockLevel > 0);
--BlockLevel;
- Flush();
+ FlushRecord();
Stream.ExitBlock();
}
More information about the llvm-commits
mailing list