mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Add ExistentialMethodInst.
Like ArchetypeMethodInst for existential types. Factor out a common WitnessTableMethodInst for both insns. Swift SVN r3506
This commit is contained in:
@@ -220,6 +220,13 @@ public:
|
||||
return insert(new ArchetypeMethodInst(Loc, Operand, Member, MethodTy, F));
|
||||
}
|
||||
|
||||
ExistentialMethodInst *createExistentialMethod(SILLocation Loc,
|
||||
Value Operand,
|
||||
SILConstant Member,
|
||||
Type MethodTy) {
|
||||
return insert(new ExistentialMethodInst(Loc, Operand, Member, MethodTy, F));
|
||||
}
|
||||
|
||||
MetatypeInst *createMetatype(Expr *Expr) {
|
||||
return insert(new MetatypeInst(Expr));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user