forked from OSchip/llvm-project
Update LabelsBeforeInsn also, when creating unknown-position labels.
llvm-svn: 103145
This commit is contained in:
parent
e902956f59
commit
47d04e3e41
|
@ -2162,6 +2162,11 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
|
|||
PrevInstLoc = DL;
|
||||
PrevLabel = Label;
|
||||
}
|
||||
|
||||
// If this instruction begins a scope then note down corresponding label.
|
||||
if (InsnsBeginScopeSet.count(MI) != 0)
|
||||
LabelsBeforeInsn[MI] = Label;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue