summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-04-29 18:50:36 +0000
committerDevang Patel <dpatel@apple.com>2010-04-29 18:50:36 +0000
commita46953d2812c1b0448c9f3b4ee98a29148867b70 (patch)
tree70a524204b3fec075cce60df1d35c2b5f160e64a /llvm/lib/CodeGen
parentd433757315fdfb1ffed090565698df4e43f1f88d (diff)
downloadbcm5719-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.cpp7
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())
OpenPOWER on IntegriCloud