summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-14 08:36:50 +0000
committerChris Lattner <sabre@nondot.org>2010-03-14 08:36:50 +0000
commit6e52e9db31747089989267b7926a31407111e4af (patch)
tree13e4e19c241b6ac81e5ad9c19a0700106d285f6b /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentb4c0f5cc7921a4d08ff78ef6a2ef61eb508ea6d0 (diff)
downloadbcm5719-llvm-6e52e9db31747089989267b7926a31407111e4af.tar.gz
bcm5719-llvm-6e52e9db31747089989267b7926a31407111e4af.zip
get MMI out of the label uniquing business, just go to MCContext
to get unique assembler temporary labels. llvm-svn: 98489
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 37769421b44..41d24bb37db 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1972,7 +1972,7 @@ void DwarfDebug::endScope(const MachineInstr *MI) {
if (I == DbgScopeEndMap.end())
return;
- MCSymbol *Label = MMI->getLabelSym(MMI->NextLabelID());
+ MCSymbol *Label = MMI->getContext().CreateTempSymbol();
Asm->OutStreamer.EmitLabel(Label);
SmallVector<DbgScope*, 2> &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 = MMI->getLabelSym(MMI->NextLabelID());
+ MCSymbol *Label = MMI->getContext().CreateTempSymbol();
Lines.push_back(SrcLineInfo(Line, Col, Src, Label));
if (TimePassesIsEnabled)
OpenPOWER on IntegriCloud