[llvm] r219466 - Avoid unnecessary map lookup/insertion.
David Blaikie
dblaikie at gmail.com
Thu Oct 9 20:09:38 PDT 2014
Author: dblaikie
Date: Thu Oct 9 22:09:38 2014
New Revision: 219466
URL: http://llvm.org/viewvc/llvm-project?rev=219466&view=rev
Log:
Avoid unnecessary map lookup/insertion.
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=219466&r1=219465&r2=219466&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Oct 9 22:09:38 2014
@@ -337,12 +337,12 @@ void DwarfDebug::constructAbstractSubpro
DISubprogram SP(Scope->getScopeNode());
- ProcessedSPNodes.insert(SP);
-
DIE *&AbsDef = AbstractSPDies[SP];
if (AbsDef)
return;
+ ProcessedSPNodes.insert(SP);
+
// Find the subprogram's DwarfCompileUnit in the SPMap in case the subprogram
// was inlined from another compile unit.
DwarfCompileUnit &SPCU = *SPMap[SP];
More information about the llvm-commits
mailing list