clear new map and initialize new variable
authorPedro Artigas <partigas@apple.com>
Wed, 20 Feb 2013 00:10:29 +0000 (00:10 +0000)
committerPedro Artigas <partigas@apple.com>
Wed, 20 Feb 2013 00:10:29 +0000 (00:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175578 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCContext.cpp

index a074003711f8de0ffe44a4e187ecce76e887ca1f..1a7df6041e68652bdd543d825db67b0ade3c0d3b 100644 (file)
@@ -83,6 +83,8 @@ void MCContext::reset() {
   DwarfDebugFlags = StringRef();
   MCLineSections.clear();
   MCLineSectionOrder.clear();
+  DwarfCompileUnitID = 0;
+  MCLineTableSymbols.clear();
   CurrentDwarfLoc = MCDwarfLoc(0,0,0,DWARF2_FLAG_IS_STMT,0,0);
 
   // If we have the MachO uniquing map, free it.