[Serialization] Support factory initializers.

These never appear in Swift code, but they can appear when serializing the
full output of SILGen ("SIB" format) because that includes code synthesized
for imported Clang declarations.

rdar://problem/22098491

Swift SVN r31364
This commit is contained in:
Jordan Rose
2015-08-20 19:28:22 +00:00
parent 340716da16
commit 3e0cf08daa
4 changed files with 26 additions and 13 deletions

View File

@@ -167,9 +167,11 @@ using AccessorKindField = BCFixed<3>;
// VERSION_MAJOR.
enum CtorInitializerKind : uint8_t {
Designated = 0,
Convenience = 1
Convenience = 1,
Factory = 2,
ConvenienceFactory = 3,
};
using CtorInitializerKindField = BCFixed<1>;
using CtorInitializerKindField = BCFixed<2>;
// These IDs must \em not be renumbered or reordered without incrementing
// VERSION_MAJOR.