mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
Handle OpDeref in case it comes in as a register operand.
Part of rdar://11352000 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2049,9 +2049,11 @@ void DwarfDebug::emitDebugLoc() {
|
||||
if (Element == DIBuilder::OpPlus) {
|
||||
Asm->EmitInt8(dwarf::DW_OP_plus_uconst);
|
||||
Asm->EmitULEB128(DV.getAddrElement(++i));
|
||||
} else if (Element == DIBuilder::OpDeref)
|
||||
Asm->EmitInt8(dwarf::DW_OP_deref);
|
||||
else llvm_unreachable("unknown Opcode found in complex address");
|
||||
} else if (Element == DIBuilder::OpDeref) {
|
||||
if (Entry.Loc.getOffset())
|
||||
Asm->EmitInt8(dwarf::DW_OP_deref);
|
||||
} else
|
||||
llvm_unreachable("unknown Opcode found in complex address");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user