diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-04-19 23:42:17 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-04-19 23:42:17 +0000 |
commit | 295c952b67900e68960bf0be6c29d1393d6916dd (patch) | |
tree | 2d257ea2062ca31676bf9a6b7739caa4955cbdfc /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | 2fb59601211a4cd680553f6bd8d6bbeea98942f9 (diff) | |
download | bcm5719-llvm-295c952b67900e68960bf0be6c29d1393d6916dd.tar.gz bcm5719-llvm-295c952b67900e68960bf0be6c29d1393d6916dd.zip |
Revert "Fix bug that caused DwarfExpression to drop DW_OP_deref from FI locations"
This reverts commit r300790.
llvm-svn: 300792
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index bac0c204d04..f5dccd17295 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -472,8 +472,6 @@ void DwarfUnit::addBlockByrefAddress(const DbgVariable &DV, DIE &Die, // variable's location. DIELoc *Loc = new (DIEValueAllocator) DIELoc; DIEDwarfExpression DwarfExpr(*Asm, *this, *Loc); - if (Location.isIndirect()) - DwarfExpr.setMemoryLocationKind(); SmallVector<uint64_t, 9> Ops; if (Location.isIndirect() && Location.getOffset()) { @@ -507,7 +505,7 @@ void DwarfUnit::addBlockByrefAddress(const DbgVariable &DV, DIE &Die, DIExpressionCursor Cursor(Ops); const TargetRegisterInfo &TRI = *Asm->MF->getSubtarget().getRegisterInfo(); - if (!DwarfExpr.addMachineRegExpression(TRI, Cursor, Location.getReg())) + if (!DwarfExpr.addMachineLocExpression(TRI, Cursor, Location)) return; DwarfExpr.addExpression(std::move(Cursor)); |