summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-14 22:51:59 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-14 22:51:59 +0000
commit91e81046223483d9639c9c51d0adf8f322da0b75 (patch)
treefbe0c063a241b9fbc8f1b8e91d8cb52194da797c /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parenta310d98ff1ccf7498beaf9614764eeff1291c986 (diff)
downloadbcm5719-llvm-91e81046223483d9639c9c51d0adf8f322da0b75.tar.gz
bcm5719-llvm-91e81046223483d9639c9c51d0adf8f322da0b75.zip
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. llvm-svn: 208820
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 2b445977750..5585f253918 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1142,8 +1142,6 @@ void DwarfDebug::collectVariableInfoFromMMITable(
RegVar->setFrameIndex(VI.Slot);
if (!addCurrentFnArgument(RegVar, Scope))
addScopeVariable(Scope, RegVar);
- if (AbsDbgVariable)
- AbsDbgVariable->setFrameIndex(VI.Slot);
}
}
OpenPOWER on IntegriCloud