From: Chris Lattner Date: Sun, 14 Mar 2010 08:18:13 +0000 (+0000) Subject: don't use getDWLabel("label" anymore, always go through MMI. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8d9aaba84e80d40093fa8e1fe452a5ddcb4cc7f7;p=oota-llvm.git don't use getDWLabel("label" anymore, always go through MMI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98485 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index fd3902d8502..37769421b44 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1972,7 +1972,7 @@ void DwarfDebug::endScope(const MachineInstr *MI) { if (I == DbgScopeEndMap.end()) return; - MCSymbol *Label = getDWLabel("label", MMI->NextLabelID()); + MCSymbol *Label = MMI->getLabelSym(MMI->NextLabelID()); Asm->OutStreamer.EmitLabel(Label); SmallVector &SD = I->second; @@ -2220,7 +2220,7 @@ MCSymbol *DwarfDebug::recordSourceLine(unsigned Line, unsigned Col, MDNode *S) { assert(0 && "Unexpected scope info"); unsigned Src = GetOrCreateSourceID(Dir, Fn); - MCSymbol *Label = getDWLabel("label", MMI->NextLabelID()); + MCSymbol *Label = MMI->getLabelSym(MMI->NextLabelID()); Lines.push_back(SrcLineInfo(Line, Col, Src, Label)); if (TimePassesIsEnabled)