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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user