[llvm-commits] [llvm] r89702 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Dan Gohman
gohman at apple.com
Mon Nov 23 13:30:55 PST 2009
Author: djg
Date: Mon Nov 23 15:30:55 2009
New Revision: 89702
URL: http://llvm.org/viewvc/llvm-project?rev=89702&view=rev
Log:
Simplify this code.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=89702&r1=89701&r2=89702&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Nov 23 15:30:55 2009
@@ -1854,7 +1854,7 @@
InsnToDbgScopeMapTy::iterator I = DbgScopeBeginMap.find(MI);
if (I == DbgScopeBeginMap.end())
return;
- ScopeVector &SD = DbgScopeBeginMap[MI];
+ ScopeVector &SD = I->second;
for (ScopeVector::iterator SDI = SD.begin(), SDE = SD.end();
SDI != SDE; ++SDI)
(*SDI)->setStartLabelID(Label);
More information about the llvm-commits
mailing list