[serialization] Include BLOCKINFO block even in Release builds.

Though it adds a small bit of bloat to the serialized modules, it's
necessary for llvm-bcanalyzer-based tests, and it's really not something
to worry about anyway.

Swift SVN r5750
This commit is contained in:
Jordan Rose
2013-06-21 18:23:49 +00:00
parent 3bd556a4f7
commit a63dddfba6

View File

@@ -327,7 +327,6 @@ static void emitRecordID(llvm::BitstreamWriter &out, unsigned ID,
void Serializer::writeBlockInfoBlock() {
BCBlockRAII restoreBlock(Out, llvm::bitc::BLOCKINFO_BLOCK_ID, 2);
#ifndef NDEBUG
SmallVector<unsigned char, 64> nameBuffer;
#define BLOCK(X) emitBlockID(Out, X ## _ID, #X, nameBuffer)
#define RECORD(K, X) emitRecordID(Out, K::X, #X, nameBuffer)
@@ -378,7 +377,6 @@ void Serializer::writeBlockInfoBlock() {
#undef BLOCK
#undef RECORD
#endif /* NDEBUG */
}
void Serializer::writeHeader() {