SIL: Introduce sil_property declarations for property descriptors.

This provides SILGen a place to generate the key path component information for an exported property so that it can be linked to from other modules.
This commit is contained in:
Joe Groff
2018-02-23 10:08:41 -08:00
parent 2d377a4636
commit d365c153d4
22 changed files with 1022 additions and 609 deletions

View File

@@ -813,3 +813,13 @@ void SILModule::setOptRecordStream(
OptRecordStream = std::move(Stream);
OptRecordRawStream = std::move(RawStream);
}
SILProperty *SILProperty::create(SILModule &M,
bool Serialized,
AbstractStorageDecl *Decl,
KeyPathPatternComponent Component) {
auto prop = new (M) SILProperty(Serialized, Decl, Component);
M.properties.push_back(prop);
return prop;
}