mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
DO not push DBG_VALUE machine instructions for inlined fuction arguments in entry block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102653 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e6fe5ec17
commit
a83ce98d5f
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user