mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -327,7 +327,6 @@ static void emitRecordID(llvm::BitstreamWriter &out, unsigned ID,
|
|||||||
void Serializer::writeBlockInfoBlock() {
|
void Serializer::writeBlockInfoBlock() {
|
||||||
BCBlockRAII restoreBlock(Out, llvm::bitc::BLOCKINFO_BLOCK_ID, 2);
|
BCBlockRAII restoreBlock(Out, llvm::bitc::BLOCKINFO_BLOCK_ID, 2);
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
SmallVector<unsigned char, 64> nameBuffer;
|
SmallVector<unsigned char, 64> nameBuffer;
|
||||||
#define BLOCK(X) emitBlockID(Out, X ## _ID, #X, nameBuffer)
|
#define BLOCK(X) emitBlockID(Out, X ## _ID, #X, nameBuffer)
|
||||||
#define RECORD(K, X) emitRecordID(Out, K::X, #X, nameBuffer)
|
#define RECORD(K, X) emitRecordID(Out, K::X, #X, nameBuffer)
|
||||||
@@ -378,7 +377,6 @@ void Serializer::writeBlockInfoBlock() {
|
|||||||
|
|
||||||
#undef BLOCK
|
#undef BLOCK
|
||||||
#undef RECORD
|
#undef RECORD
|
||||||
#endif /* NDEBUG */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Serializer::writeHeader() {
|
void Serializer::writeHeader() {
|
||||||
|
|||||||
Reference in New Issue
Block a user