diff options
| author | Devang Patel <dpatel@apple.com> | 2010-08-25 20:39:26 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-08-25 20:39:26 +0000 |
| commit | 3f53d6e56a46aacd62efa535bca6770054066ffd (patch) | |
| tree | 2497370856314ad903a0760c61e8a75d427f9b23 | |
| parent | 7c1b421ae662fb46575cfc64cf95de8552f7363d (diff) | |
| download | bcm5719-llvm-3f53d6e56a46aacd62efa535bca6770054066ffd.tar.gz bcm5719-llvm-3f53d6e56a46aacd62efa535bca6770054066ffd.zip | |
Remove dead argument.
llvm-svn: 112085
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 7 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index d2972960953..a8a8ecb4c13 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -853,7 +853,7 @@ void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V, uint64_t Offset = DI->getOffset(); SDDbgValue *SDV; if (Val.getNode()) { - if (!EmitFuncArgumentDbgValue(*DI, V, Variable, Offset, Val)) { + if (!EmitFuncArgumentDbgValue(V, Variable, Offset, Val)) { SDV = DAG.getDbgValue(Variable, Val.getNode(), Val.getResNo(), Offset, dl, DbgSDNodeOrder); DAG.AddDbgValue(SDV, Val.getNode(), false); @@ -3888,8 +3888,7 @@ static SDValue ExpandPowI(DebugLoc DL, SDValue LHS, SDValue RHS, /// argument, create the corresponding DBG_VALUE machine instruction for it now. /// At the end of instruction selection, they will be inserted to the entry BB. bool -SelectionDAGBuilder::EmitFuncArgumentDbgValue(const DbgValueInst &DI, - const Value *V, MDNode *Variable, +SelectionDAGBuilder::EmitFuncArgumentDbgValue(const Value *V, MDNode *Variable, uint64_t Offset, const SDValue &N) { if (!isa<Argument>(V)) @@ -4106,7 +4105,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) { // Check unused arguments map. N = UnusedArgNodeMap[V]; if (N.getNode()) { - if (!EmitFuncArgumentDbgValue(DI, V, Variable, Offset, N)) { + if (!EmitFuncArgumentDbgValue(V, Variable, Offset, N)) { SDV = DAG.getDbgValue(Variable, N.getNode(), N.getResNo(), Offset, dl, SDNodeOrder); DAG.AddDbgValue(SDV, N.getNode(), false); diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index bc3fd62c3f2..bd7ec28f072 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -532,8 +532,7 @@ private: /// function argument, create the corresponding DBG_VALUE machine instruction /// for it now. At the end of instruction selection, they will be inserted to /// the entry BB. - bool EmitFuncArgumentDbgValue(const DbgValueInst &DI, - const Value *V, MDNode *Variable, + bool EmitFuncArgumentDbgValue(const Value *V, MDNode *Variable, uint64_t Offset, const SDValue &N); }; |

