mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
make the SIL Printer print the var decl associated with a debug_value[_addr],
like this: debug_value %0 : $Int64 // let a // id: %2 Swift SVN r12191
This commit is contained in:
@@ -436,12 +436,22 @@ VarDecl *AllocBoxInst::getDecl() const {
|
||||
return getLoc().getAsASTNode<VarDecl>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
AllocArrayInst::AllocArrayInst(SILLocation Loc, SILType ElementType,
|
||||
SILValue NumElements, SILFunction &F)
|
||||
: SILInstruction(ValueKind::AllocArrayInst, Loc, getAllocType(ElementType, F)),
|
||||
Operands(this, NumElements) {
|
||||
}
|
||||
|
||||
VarDecl *DebugValueInst::getDecl() const {
|
||||
return getLoc().getAsASTNode<VarDecl>();
|
||||
}
|
||||
VarDecl *DebugValueAddrInst::getDecl() const {
|
||||
return getLoc().getAsASTNode<VarDecl>();
|
||||
}
|
||||
|
||||
|
||||
ApplyInst::ApplyInst(SILLocation Loc, SILValue Callee,
|
||||
SILType SubstCalleeTy,
|
||||
SILType Result,
|
||||
|
||||
Reference in New Issue
Block a user