// Push function on region stack.
RegionStack.push_back(SP);
+ EmitStopPoint(Fn, Builder);
}
DebugFactory.CreateVariable(Tag, RegionStack.back(),Decl->getNameAsString(),
Unit, Line, Ty);
// Insert an llvm.dbg.declare into the current block.
- DebugFactory.InsertDeclare(Storage, D, Builder.GetInsertBlock());
+ llvm::Instruction *Call =
+ DebugFactory.InsertDeclare(Storage, D, Builder.GetInsertBlock());
+ Builder.SetDebugLocation(Call);
}
/// EmitDeclare - Emit local variable declaration debug info.