Debug Info: Remove unused code. The MInsn of an _abstract_ variable is
authorAdrian Prantl <aprantl@apple.com>
Thu, 29 May 2014 16:56:48 +0000 (16:56 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 29 May 2014 16:56:48 +0000 (16:56 +0000)
never used again and updating the abstract variable for each inlined
instance of it was questionable in the first place.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209829 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 2a0615d74f61c12a251f3c0cb6a8626b69603f18..66ba9298c403f2d4510029cd20d9811e3b0508d6 100644 (file)
@@ -1179,8 +1179,6 @@ DwarfDebug::collectVariableInfo(SmallPtrSet<const MDNode *, 16> &Processed) {
     DbgVariable *RegVar = new DbgVariable(DV, AbsVar, this);
     if (!addCurrentFnArgument(RegVar, Scope))
       addScopeVariable(Scope, RegVar);
-    if (AbsVar)
-      AbsVar->setMInsn(MInsn);
 
     // Check if the first DBG_VALUE is valid for the rest of the function.
     if (Ranges.size() == 1 && Ranges.front().second == nullptr) {