Remove dead code.
authorDevang Patel <dpatel@apple.com>
Wed, 26 May 2010 17:42:50 +0000 (17:42 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 26 May 2010 17:42:50 +0000 (17:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104706 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h

index 231f63c1bc5dbda3f847db765b4da9394413cac8..048268fa7ca91c7b252a3b779fd0154fa5224973 100644 (file)
@@ -2198,10 +2198,8 @@ void DwarfDebug::collectVariableInfo(const MachineFunction *MF) {
     Processed.insert(DV);
     DbgVariable *RegVar = new DbgVariable(DV);
     Scope->addVariable(RegVar);
-    if (DV.getTag() != dwarf::DW_TAG_arg_variable) {
-      DbgValueStartMap[MInsn] = RegVar;
+    if (DV.getTag() != dwarf::DW_TAG_arg_variable)
       DbgVariableLabelsMap[RegVar] = getLabelBeforeInsn(MInsn); 
-    }
     if (DbgVariable *AbsVar = findAbstractVariable(DV, MInsn->getDebugLoc())) {
       DbgVariableToDbgInstMap[AbsVar] = MInsn;
       VarToAbstractVarMap[RegVar] = AbsVar;
@@ -2224,7 +2222,6 @@ void DwarfDebug::collectVariableInfo(const MachineFunction *MF) {
         continue;
       } 
       End = *MVI;
-      DbgValueStartMap[End] = RegVar;
       MachineLocation MLoc;
       MLoc.set(Begin->getOperand(0).getReg(), 0);
       const MCSymbol *FLabel = getLabelBeforeInsn(Begin);
@@ -2683,7 +2680,6 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
   DeleteContainerSeconds(DbgScopeMap);
   InsnsBeginScopeSet.clear();
   InsnsEndScopeSet.clear();
-  DbgValueStartMap.clear();
   ConcreteScopes.clear();
   DeleteContainerSeconds(AbstractScopes);
   AbstractScopesList.clear();
index 781302e99988c2b12583ccca97338375b013ac98..5d2294918e687652173bd83d41f8a28d89c67425 100644 (file)
@@ -164,12 +164,6 @@ class DwarfDebug {
   /// DbgScopes in AbstractScopes.
   DenseMap<const MDNode *, DbgVariable *> AbstractVariables;
 
-  /// DbgValueStartMap - Tracks starting scope of variable DIEs.
-  /// If the scope of an object begins sometime after the low pc value for the 
-  /// scope most closely enclosing the object, the object entry may have a 
-  /// DW_AT_start_scope attribute.
-  DenseMap<const MachineInstr *, DbgVariable *> DbgValueStartMap;
-
   /// DbgVariableToFrameIndexMap - Tracks frame index used to find 
   /// variable's value.
   DenseMap<const DbgVariable *, int> DbgVariableToFrameIndexMap;