mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
SIL Serialiation: add implementation to serialize SIL basic block and a
few SIL instructions types. This will be tested when we have a SIL deserializer. Testing cases covering each implemented SIL instruction will be added. Swift SVN r8094
This commit is contained in:
@@ -408,6 +408,13 @@ ModuleFile::ModuleFile(llvm::OwningPtr<llvm::MemoryBuffer> &&input)
|
||||
break;
|
||||
}
|
||||
|
||||
// FIXME: for now, skip the SIL block.
|
||||
case SIL_BLOCK_ID: {
|
||||
if (cursor.SkipBlock())
|
||||
return error();
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
// Unknown top-level block, possibly for use by a future version of the
|
||||
// module format.
|
||||
|
||||
Reference in New Issue
Block a user