Refactor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2010-04-29 20:40:36 +00:00
parent 8c5358c936
commit 719f6a9d9c
2 changed files with 13 additions and 4 deletions

View File

@@ -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;