aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-04-29 20:40:36 +0000
committerDevang Patel <dpatel@apple.com>2010-04-29 20:40:36 +0000
commit5e9ee00e44758b4f587d8d48f0983161761d8924 (patch)
tree01e6e771cd80a77912333220ed58fdf1c6c38bcf /lib/CodeGen/SelectionDAG
parent6914a05c88c501c6f3c1548fcc13c22f0d3cfa22 (diff)
downloadexternal_llvm-5e9ee00e44758b4f587d8d48f0983161761d8924.zip
external_llvm-5e9ee00e44758b4f587d8d48f0983161761d8924.tar.gz
external_llvm-5e9ee00e44758b4f587d8d48f0983161761d8924.tar.bz2
Refactor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 3f81268..7914829 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/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;