From 90e19aad7dae346a7dc1a66f07bfe13038e67349 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 30 Jun 2010 01:40:11 +0000 Subject: [PATCH] Do not construct DIE for already processed MDNode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107237 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 73aa8d81eeb..50c0feac091 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2766,7 +2766,8 @@ void DwarfDebug::endFunction(const MachineFunction *MF) { } } } - constructScopeDIE(*AI); + if (ProcessedSPNodes.count((*AI)->getScopeNode()) == 0) + constructScopeDIE(*AI); } DIE *CurFnDIE = constructScopeDIE(CurrentFnDbgScope); -- 2.34.1