SIL: ArchetypeMethodInst doesn't need a value operand.

Archetype methods can be looked up from the local witness tables for the archetype independent of an object.

Swift SVN r5152
This commit is contained in:
Joe Groff
2013-05-10 22:26:22 +00:00
parent b867592214
commit d2e18f74c8
5 changed files with 41 additions and 13 deletions

View File

@@ -336,11 +336,12 @@ public:
return insert(new SuperMethodInst(Loc, Operand, Member, MethodTy));
}
ArchetypeMethodInst *createArchetypeMethod(SILLocation Loc, SILValue Operand,
ArchetypeMethodInst *createArchetypeMethod(SILLocation Loc,
SILType LookupTy,
SILConstant Member,
SILType MethodTy)
{
return insert(new ArchetypeMethodInst(Loc, Operand, Member, MethodTy));
return insert(new ArchetypeMethodInst(Loc, LookupTy, Member, MethodTy));
}
ProtocolMethodInst *createProtocolMethod(SILLocation Loc,