From 0fb9226470d8b5f4da5f08d84adc75849f7cc920 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 27 May 2014 18:37:51 +0000 Subject: [PATCH] DebugInfo: Avoid an extra map lookup when finding abstract subprogram DIEs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209676 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 421cdbd95fa..c28c20d68a7 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -435,7 +435,7 @@ DwarfDebug::constructInlinedScopeDIE(DwarfCompileUnit &TheCU, DISubprogram InlinedSP = getDISubprogram(DS); // Find the subprogram's DwarfCompileUnit in the SPMap in case the subprogram // was inlined from another compile unit. - DIE *OriginDIE = SPMap[InlinedSP]->getDIE(InlinedSP); + DIE *OriginDIE = AbstractSPDies[InlinedSP]; assert(OriginDIE && "Unable to find original DIE for an inlined subprogram."); auto ScopeDIE = make_unique(dwarf::DW_TAG_inlined_subroutine); -- 2.34.1