Clear MachineInstr->MCSymbol maps at the end of a function.
authorDevang Patel <dpatel@apple.com>
Wed, 14 Apr 2010 01:18:28 +0000 (01:18 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 14 Apr 2010 01:18:28 +0000 (01:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101202 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 06e7cc40331831cfb4e158313ba9b3041f9b466c..e2767b9e18762d79f5c8ddf4c1a22d3845f2d898 100644 (file)
@@ -2351,6 +2351,8 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
   DeleteContainerSeconds(AbstractScopes);
   AbstractScopesList.clear();
   AbstractVariables.clear();
+  InsnBeforeLabelMap.clear();
+  InsnAfterLabelMap.clear();
   Lines.clear();
 }