| Index: src/a64/disasm-a64.cc
|
| diff --git a/src/a64/disasm-a64.cc b/src/a64/disasm-a64.cc
|
| index b5e5fdd2c8dd456e63c5c8917ad96c21d5cf771e..970be11d7872d7caae79c0498996b00fbfb13246 100644
|
| --- a/src/a64/disasm-a64.cc
|
| +++ b/src/a64/disasm-a64.cc
|
| @@ -1606,8 +1606,8 @@ int Disassembler::SubstitutePCRelAddressField(Instruction* instr,
|
| offset = -offset;
|
| sign = '-';
|
| }
|
| - // TODO(jbramley): Can we print the target address here?
|
| - AppendToOutput("#%c0x%x", sign, offset);
|
| + STATIC_ASSERT(sizeof(*instr) == 1);
|
| + AppendToOutput("#%c0x%x (addr %p)", sign, offset, instr + offset);
|
| return 13;
|
| }
|
|
|
| @@ -1634,8 +1634,8 @@ int Disassembler::SubstituteBranchTargetField(Instruction* instr,
|
| offset = -offset;
|
| sign = '-';
|
| }
|
| - // TODO(mcapewel): look up pc + offset in label table.
|
| - AppendToOutput("#%c0x%" PRIx64, sign, offset);
|
| + STATIC_ASSERT(sizeof(*instr) == 1);
|
| + AppendToOutput("#%c0x%" PRIx64 " (addr %p)", sign, offset, instr + offset);
|
| return 8;
|
| }
|
|
|
|
|