diff options
| author | Devang Patel <dpatel@apple.com> | 2010-04-29 18:50:36 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-04-29 18:50:36 +0000 |
| commit | a46953d2812c1b0448c9f3b4ee98a29148867b70 (patch) | |
| tree | 70a524204b3fec075cce60df1d35c2b5f160e64a /llvm/lib/CodeGen | |
| parent | d433757315fdfb1ffed090565698df4e43f1f88d (diff) | |
| download | bcm5719-llvm-a46953d2812c1b0448c9f3b4ee98a29148867b70.tar.gz bcm5719-llvm-a46953d2812c1b0448c9f3b4ee98a29148867b70.zip | |
DO not push DBG_VALUE machine instructions for inlined fuction arguments in entry block.
llvm-svn: 102653
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 9001894d6fa..3f81268c91a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -3691,6 +3691,13 @@ SelectionDAGBuilder::EmitFuncArgumentDbgValue(const DbgValueInst &DI, if (!isa<Argument>(V)) return false; + // Ignore inlined function arguments here. + DIVariable DV(Variable); + if (DV.getContext().isSubprogram() + && DISubprogram(DV.getContext().getNode()).getLinkageName() + != cast<Argument>(V)->getParent()->getName()) + return false; + MachineFunction &MF = DAG.getMachineFunction(); MachineBasicBlock *MBB = FuncInfo.MBBMap[DI.getParent()]; if (MBB != &MF.front()) |

