diff options
author | Devang Patel <dpatel@apple.com> | 2009-12-01 18:13:48 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-12-01 18:13:48 +0000 |
commit | 0a2c0bcb149a87d682c154a5a61e90f23fcc323e (patch) | |
tree | d465e8ce429cdb7d38a16745d617ea67e060e6cb /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 36d4dec28ae66f8663ef39a5a474c3ed5c766dac (diff) | |
download | bcm5719-llvm-0a2c0bcb149a87d682c154a5a61e90f23fcc323e.tar.gz bcm5719-llvm-0a2c0bcb149a87d682c154a5a61e90f23fcc323e.zip |
Clear function specific containers while processing end of a function, even if DW_TAG_subprogram for current function is not found.
llvm-svn: 90247
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index c2e1e0503a8..30264c751bb 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2092,17 +2092,15 @@ void DwarfDebug::endFunction(MachineFunction *MF) { MMI->getFrameMoves())); // Clear debug info - if (CurrentFnDbgScope) { - CurrentFnDbgScope = NULL; - DbgScopeMap.clear(); - DbgScopeBeginMap.clear(); - DbgScopeEndMap.clear(); - ConcreteScopes.clear(); - AbstractScopesList.clear(); - } + CurrentFnDbgScope = NULL; + DbgScopeMap.clear(); + DbgScopeBeginMap.clear(); + DbgScopeEndMap.clear(); + ConcreteScopes.clear(); + AbstractScopesList.clear(); Lines.clear(); - + if (TimePassesIsEnabled) DebugTimer->stopTimer(); } |