diff options
| author | Devang Patel <dpatel@apple.com> | 2010-04-29 20:40:36 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-04-29 20:40:36 +0000 |
| commit | 0395553e35d19995b3af7d2450b2b5c35da362f1 (patch) | |
| tree | d167a7cabf586207ebf56dd6b936b370395812c7 /llvm/lib/CodeGen/SelectionDAG | |
| parent | 6feac8a39b6607c5be2a9284711b2a9da0feea8f (diff) | |
| download | bcm5719-llvm-0395553e35d19995b3af7d2450b2b5c35da362f1.tar.gz bcm5719-llvm-0395553e35d19995b3af7d2450b2b5c35da362f1.zip | |
Refactor.
llvm-svn: 102661
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 3f81268c91a..791482906d8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -3691,14 +3691,12 @@ SelectionDAGBuilder::EmitFuncArgumentDbgValue(const DbgValueInst &DI, if (!isa<Argument>(V)) return false; + MachineFunction &MF = DAG.getMachineFunction(); // Ignore inlined function arguments here. DIVariable DV(Variable); - if (DV.getContext().isSubprogram() - && DISubprogram(DV.getContext().getNode()).getLinkageName() - != cast<Argument>(V)->getParent()->getName()) + if (DV.isInlinedFnArgument(MF.getFunction())) return false; - MachineFunction &MF = DAG.getMachineFunction(); MachineBasicBlock *MBB = FuncInfo.MBBMap[DI.getParent()]; if (MBB != &MF.front()) return false; |

