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:
Chris Lattner
2014-01-11 01:40:15 +00:00
parent 11d2e9282b
commit d82df1e073
3 changed files with 26 additions and 1 deletions

View File

@@ -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,