summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-07-25 21:50:45 +0000
committerAdrian Prantl <aprantl@apple.com>2017-07-25 21:50:45 +0000
commitb6d5faf2ea0a9a01514c5347afd86065c695c697 (patch)
tree3b1f3b6538fdefc3ae6256bbae409bddb3d4c6d4 /llvm/lib/CodeGen/AsmPrinter
parent3d1ab0cd1efb7de6f24b4fd4a29d36a8c33d7b76 (diff)
downloadbcm5719-llvm-b6d5faf2ea0a9a01514c5347afd86065c695c697.tar.gz
bcm5719-llvm-b6d5faf2ea0a9a01514c5347afd86065c695c697.zip
Revert "Debug Info: Support fragmented variables in the MMI side table"
This reverts commit r309034 because of a sanitizer issue. llvm-svn: 309035
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 90ba8f76389..036d1080a28 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -779,7 +779,6 @@ void DwarfDebug::ensureAbstractVariableIsCreatedIfScoped(DwarfCompileUnit &CU,
// Collect variable information from side table maintained by MF.
void DwarfDebug::collectVariableInfoFromMFTable(
DwarfCompileUnit &TheCU, DenseSet<InlinedVariable> &Processed) {
- SmallDenseMap<const DILocalVariable *, DbgVariable *> MFVars;
for (const auto &VI : Asm->MF->getVariableDbgInfo()) {
if (!VI.Var)
continue;
@@ -797,12 +796,8 @@ void DwarfDebug::collectVariableInfoFromMFTable(
ensureAbstractVariableIsCreatedIfScoped(TheCU, Var, Scope->getScopeNode());
auto RegVar = make_unique<DbgVariable>(Var.first, Var.second);
RegVar->initializeMMI(VI.Expr, VI.Slot);
- if (DbgVariable *DbgVar = MFVars.lookup(VI.Var))
- DbgVar->addMMIEntry(*RegVar);
- else if (InfoHolder.addScopeVariable(Scope, RegVar.get())) {
- MFVars.insert({VI.Var, RegVar.get()});
+ if (InfoHolder.addScopeVariable(Scope, RegVar.get()))
ConcreteVariables.push_back(std::move(RegVar));
- }
}
}
OpenPOWER on IntegriCloud