mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 06:27:16 +00:00
Renamed "Flush()" to "FlushRecord()".
llvm-svn: 43772
This commit is contained in:
parent
16a9212602
commit
3609f43f5c
@ -54,7 +54,7 @@ public:
|
||||
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();
|
||||
|
@ -29,7 +29,7 @@ Serializer::~Serializer() {
|
||||
|
||||
while (BlockLevel > 0)
|
||||
Stream.ExitBlock();
|
||||
|
||||
|
||||
Stream.FlushToWord();
|
||||
}
|
||||
|
||||
@ -40,7 +40,7 @@ void Serializer::EmitRecord() {
|
||||
}
|
||||
|
||||
void Serializer::EnterBlock(unsigned BlockID,unsigned CodeLen) {
|
||||
Flush();
|
||||
FlushRecord();
|
||||
Stream.EnterSubblock(BlockID,CodeLen);
|
||||
++BlockLevel;
|
||||
}
|
||||
@ -48,7 +48,7 @@ void Serializer::EnterBlock(unsigned BlockID,unsigned CodeLen) {
|
||||
void Serializer::ExitBlock() {
|
||||
assert (BlockLevel > 0);
|
||||
--BlockLevel;
|
||||
Flush();
|
||||
FlushRecord();
|
||||
Stream.ExitBlock();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user