DebugInfo: Gut DIVariable and DIGlobalVariable
[oota-llvm.git] / tools / llvm-dis / llvm-dis.cpp
index 35a1cbd15061a97022addeff272fc68171beca8f..f914df54cf3c121bdcb5990ac2f32787de865704 100644 (file)
@@ -94,7 +94,7 @@ public:
           OS.PadToColumn(50);
           OS << ";";
         }
-        OS << " [debug variable = " << Var.getName() << "]";
+        OS << " [debug variable = " << Var->getName() << "]";
       }
       else if (const DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) {
         DIVariable Var(DVI->getVariable());
@@ -102,7 +102,7 @@ public:
           OS.PadToColumn(50);
           OS << ";";
         }
-        OS << " [debug variable = " << Var.getName() << "]";
+        OS << " [debug variable = " << Var->getName() << "]";
       }
     }
   }