mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
Avoid unnecessary map lookup/insertion.
llvm-svn: 219466
This commit is contained in:
parent
89a98cd287
commit
ece83cd7c3
@ -337,12 +337,12 @@ void DwarfDebug::constructAbstractSubprogramScopeDIE(LexicalScope *Scope) {
|
||||
|
||||
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];
|
||||
|
Loading…
Reference in New Issue
Block a user