[SIL] InitAccessors: Add a way to retrieve a name of the property referenced by assign_or_init instruction

This is going to be used by DI diagnostics.
This commit is contained in:
Pavel Yaskevich
2023-07-04 00:06:27 -07:00
parent 8a1107ea45
commit a736e183c4
2 changed files with 7 additions and 0 deletions

View File

@@ -4925,6 +4925,7 @@ public:
ArrayRef<Operand> getAllOperands() const { return Operands.asArray(); }
MutableArrayRef<Operand> getAllOperands() { return Operands.asArray(); }
StringRef getPropertyName() const;
AccessorDecl *getReferencedInitAccessor() const;
};