mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 10:17:36 +00:00
Remove unreachable code. (NFC)
MachineLocation::getOffset() always returns 0. rdar://problem/33580047 llvm-svn: 309823
This commit is contained in:
parent
55603b4f73
commit
0ff6a1fc33
@ -81,7 +81,7 @@ public:
|
||||
if (isLocation()) {
|
||||
llvm::dbgs() << "Loc = { reg=" << Loc.getReg() << " ";
|
||||
if (Loc.isIndirect())
|
||||
llvm::dbgs() << '+' << Loc.getOffset();
|
||||
llvm::dbgs() << "+0";
|
||||
llvm::dbgs() << "} ";
|
||||
}
|
||||
else if (isConstantInt())
|
||||
|
@ -799,12 +799,7 @@ void DwarfCompileUnit::addAddress(DIE &Die, dwarf::Attribute Attribute,
|
||||
if (Location.isIndirect())
|
||||
DwarfExpr.setMemoryLocationKind();
|
||||
|
||||
SmallVector<uint64_t, 8> Ops;
|
||||
if (Location.isIndirect() && Location.getOffset()) {
|
||||
Ops.push_back(dwarf::DW_OP_plus_uconst);
|
||||
Ops.push_back(Location.getOffset());
|
||||
}
|
||||
DIExpressionCursor Cursor(Ops);
|
||||
DIExpressionCursor Cursor({});
|
||||
const TargetRegisterInfo &TRI = *Asm->MF->getSubtarget().getRegisterInfo();
|
||||
if (!DwarfExpr.addMachineRegExpression(TRI, Cursor, Location.getReg()))
|
||||
return;
|
||||
@ -828,13 +823,7 @@ void DwarfCompileUnit::addComplexAddress(const DbgVariable &DV, DIE &Die,
|
||||
if (Location.isIndirect())
|
||||
DwarfExpr.setMemoryLocationKind();
|
||||
|
||||
SmallVector<uint64_t, 8> Ops;
|
||||
if (Location.isIndirect() && Location.getOffset()) {
|
||||
Ops.push_back(dwarf::DW_OP_plus_uconst);
|
||||
Ops.push_back(Location.getOffset());
|
||||
}
|
||||
Ops.append(DIExpr->elements_begin(), DIExpr->elements_end());
|
||||
DIExpressionCursor Cursor(Ops);
|
||||
DIExpressionCursor Cursor(DIExpr);
|
||||
const TargetRegisterInfo &TRI = *Asm->MF->getSubtarget().getRegisterInfo();
|
||||
if (!DwarfExpr.addMachineRegExpression(TRI, Cursor, Location.getReg()))
|
||||
return;
|
||||
|
@ -1578,13 +1578,7 @@ static void emitDebugLocValue(const AsmPrinter &AP, const DIBasicType *BT,
|
||||
MachineLocation Location = Value.getLoc();
|
||||
if (Location.isIndirect())
|
||||
DwarfExpr.setMemoryLocationKind();
|
||||
SmallVector<uint64_t, 8> Ops;
|
||||
if (Location.isIndirect() && Location.getOffset()) {
|
||||
Ops.push_back(dwarf::DW_OP_plus_uconst);
|
||||
Ops.push_back(Location.getOffset());
|
||||
}
|
||||
Ops.append(DIExpr->elements_begin(), DIExpr->elements_end());
|
||||
DIExpressionCursor Cursor(Ops);
|
||||
DIExpressionCursor Cursor(DIExpr);
|
||||
const TargetRegisterInfo &TRI = *AP.MF->getSubtarget().getRegisterInfo();
|
||||
if (!DwarfExpr.addMachineRegExpression(TRI, Cursor, Location.getReg()))
|
||||
return;
|
||||
|
@ -473,11 +473,7 @@ void DwarfUnit::addBlockByrefAddress(const DbgVariable &DV, DIE &Die,
|
||||
if (Location.isIndirect())
|
||||
DwarfExpr.setMemoryLocationKind();
|
||||
|
||||
SmallVector<uint64_t, 9> Ops;
|
||||
if (Location.isIndirect() && Location.getOffset()) {
|
||||
Ops.push_back(dwarf::DW_OP_plus_uconst);
|
||||
Ops.push_back(Location.getOffset());
|
||||
}
|
||||
SmallVector<uint64_t, 6> Ops;
|
||||
// If we started with a pointer to the __Block_byref... struct, then
|
||||
// the first thing we need to do is dereference the pointer (DW_OP_deref).
|
||||
if (isPointer)
|
||||
|
Loading…
Reference in New Issue
Block a user