mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Make RefElement take VarDecl instead of index
This is inconsistent with ElementAddr and Extract, but allows all the hairy logic of accessing class fields in IRGen to stand without a bunch of pointless refactoring. Swift SVN r3778
This commit is contained in:
@@ -315,8 +315,8 @@ public:
|
||||
<< EI->getFieldNo();
|
||||
}
|
||||
void visitRefElementAddrInst(RefElementAddrInst *EI) {
|
||||
OS << "ref_element_addr " << getID(EI->getOperand()) << ", "
|
||||
<< EI->getFieldNo();
|
||||
OS << "ref_element_addr " << getID(EI->getOperand()) << ", @"
|
||||
<< EI->getField()->getName().get();
|
||||
}
|
||||
void visitArchetypeMethodInst(ArchetypeMethodInst *AMI) {
|
||||
OS << "archetype_method " << getID(AMI->getOperand()) << ", @";
|
||||
|
||||
Reference in New Issue
Block a user