mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user