From 47d04e3e419778121570cf54ab62df7f65ade924 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 6 May 2010 00:29:41 +0000 Subject: Update LabelsBeforeInsn also, when creating unknown-position labels. llvm-svn: 103145 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 4da549866bf..4dc53059c1a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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; } -- cgit v1.2.3