mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We can recover function, destructor, constructor, enum element and subscript types from their parameter types and result type (if present), by calling the AST's various computeType() methods. These methods don't do any more work than would be done if we had deserialized the type and reconstructed it, so let's just recompute it instead. Note that we still serialize a ton of function types, due to XREFs. With my build configuration, this reduces the size of Swift.swiftmodule by 237KiB (out of 20MiB).
50 KiB
50 KiB