From fef140df96ae48f2aa70be8c1ad71c22f464c27b Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 29 May 2014 16:56:48 +0000 Subject: [PATCH] Debug Info: Remove unused code. The MInsn of an _abstract_ variable is never used again and updating the abstract variable for each inlined instance of it was questionable in the first place. llvm-svn: 209829 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 2a0615d..66ba929 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1179,8 +1179,6 @@ DwarfDebug::collectVariableInfo(SmallPtrSet &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) { -- 2.7.4