llvm.org GIT mirror llvm / 78a06e5
Remove dead argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112085 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 10 years ago
2 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
852852 uint64_t Offset = DI->getOffset();
853853 SDDbgValue *SDV;
854854 if (Val.getNode()) {
855 if (!EmitFuncArgumentDbgValue(*DI, V, Variable, Offset, Val)) {
855 if (!EmitFuncArgumentDbgValue(V, Variable, Offset, Val)) {
856856 SDV = DAG.getDbgValue(Variable, Val.getNode(),
857857 Val.getResNo(), Offset, dl, DbgSDNodeOrder);
858858 DAG.AddDbgValue(SDV, Val.getNode(), false);
38873887 /// argument, create the corresponding DBG_VALUE machine instruction for it now.
38883888 /// At the end of instruction selection, they will be inserted to the entry BB.
38893889 bool
3890 SelectionDAGBuilder::EmitFuncArgumentDbgValue(const DbgValueInst &DI,
3891 const Value *V, MDNode *Variable,
3890 SelectionDAGBuilder::EmitFuncArgumentDbgValue(const Value *V, MDNode *Variable,
38923891 uint64_t Offset,
38933892 const SDValue &N) {
38943893 if (!isa(V))
41054104 // Check unused arguments map.
41064105 N = UnusedArgNodeMap[V];
41074106 if (N.getNode()) {
4108 if (!EmitFuncArgumentDbgValue(DI, V, Variable, Offset, N)) {
4107 if (!EmitFuncArgumentDbgValue(V, Variable, Offset, N)) {
41094108 SDV = DAG.getDbgValue(Variable, N.getNode(),
41104109 N.getResNo(), Offset, dl, SDNodeOrder);
41114110 DAG.AddDbgValue(SDV, N.getNode(), false);
531531 /// function argument, create the corresponding DBG_VALUE machine instruction
532532 /// for it now. At the end of instruction selection, they will be inserted to
533533 /// the entry BB.
534 bool EmitFuncArgumentDbgValue(const DbgValueInst &DI,
535 const Value *V, MDNode *Variable,
534 bool EmitFuncArgumentDbgValue(const Value *V, MDNode *Variable,
536535 uint64_t Offset, const SDValue &N);
537536 };
538537