SIL: Add ExistentialMethodInst.

Like ArchetypeMethodInst for existential types. Factor out a common WitnessTableMethodInst for both insns.

Swift SVN r3506
This commit is contained in:
Joe Groff
2012-12-15 02:15:51 +00:00
parent 112d0e1282
commit 6d77ef4041
6 changed files with 98 additions and 22 deletions

View File

@@ -275,6 +275,10 @@ public:
OS << "archetype_method " << getID(AMI->getOperand()) << ", @";
AMI->getMember().print(OS);
}
void visitExistentialMethodInst(ExistentialMethodInst *AMI) {
OS << "existential_method " << getID(AMI->getOperand()) << ", @";
AMI->getMember().print(OS);
}
void visitMetatypeInst(MetatypeInst *MI) {
OS << "metatype $" << MI->getMetaType().getString();
}