Remove property behaviors

This commit is contained in:
Slava Pestov
2018-12-07 18:07:35 -05:00
parent e160b85f8f
commit aa747dcd81
54 changed files with 31 additions and 2571 deletions

View File

@@ -1759,42 +1759,6 @@ InitExistentialMetatypeInst::getConformances() const {
return {getTrailingObjects<ProtocolConformanceRef>(), NumConformances};
}
MarkUninitializedBehaviorInst *
MarkUninitializedBehaviorInst::create(SILModule &M,
SILDebugLocation DebugLoc,
SILValue InitStorage,
SubstitutionMap InitStorageSubs,
SILValue Storage,
SILValue Setter,
SubstitutionMap SetterSubs,
SILValue Self,
SILType Ty) {
auto mem = M.allocateInst(sizeof(MarkUninitializedBehaviorInst),
alignof(MarkUninitializedBehaviorInst));
return ::new (mem) MarkUninitializedBehaviorInst(DebugLoc,
InitStorage, InitStorageSubs,
Storage,
Setter, SetterSubs,
Self,
Ty);
}
MarkUninitializedBehaviorInst::MarkUninitializedBehaviorInst(
SILDebugLocation DebugLoc,
SILValue InitStorage,
SubstitutionMap InitStorageSubs,
SILValue Storage,
SILValue Setter,
SubstitutionMap SetterSubs,
SILValue Self,
SILType Ty)
: InstructionBase(DebugLoc, Ty),
Operands(this, InitStorage, Storage, Setter, Self),
InitStorageSubstitutions(InitStorageSubs),
SetterSubstitutions(SetterSubs)
{
}
OpenedExistentialAccess swift::getOpenedExistentialAccessFor(AccessKind access) {
switch (access) {
case AccessKind::Read: