[llvm] r208820 - DwarfDebug: Don't set frame index locations on abstract variables.

David Blaikie dblaikie at gmail.com
Wed May 14 15:51:59 PDT 2014


Author: dblaikie
Date: Wed May 14 17:51:59 2014
New Revision: 208820

URL: http://llvm.org/viewvc/llvm-project?rev=208820&view=rev
Log:
DwarfDebug: Don't set frame index locations on abstract variables.

Abstract variables should never have/use locations. In this case the
data wasn't used, so no functional change intended here, just
simplification.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=208820&r1=208819&r2=208820&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed May 14 17:51:59 2014
@@ -1142,8 +1142,6 @@ void DwarfDebug::collectVariableInfoFrom
     RegVar->setFrameIndex(VI.Slot);
     if (!addCurrentFnArgument(RegVar, Scope))
       addScopeVariable(Scope, RegVar);
-    if (AbsDbgVariable)
-      AbsDbgVariable->setFrameIndex(VI.Slot);
   }
 }
 





More information about the llvm-commits mailing list