This is an archive of the discontinued LLVM Phabricator instance.

[AArch64InstPrinter] Change printAlignedLabel to print the target address in hexadecimal form
ClosedPublic

Authored by MaskRay on Apr 9 2020, 7:49 PM.

Details

Summary

Similar to D76580 (x86) and D76591 (PPC).

// llvm-objdump -d output (before)
10000: 08 00 00 94                   bl      #32
10004: 08 00 00 94                   bl      #32

// llvm-objdump -d output (after)
10000: 08 00 00 94                   bl      0x10020
10004: 08 00 00 94                   bl      0x10024

// GNU objdump -d. The lack of 0x is not ideal due to ambiguity.
10000:       94000008        bl      10020 <bar+0x18>
10004:       94000008        bl      10024 <bar+0x1c>

The new output akes it easier to find the jump target.

Diff Detail

Event Timeline

MaskRay created this revision.Apr 9 2020, 7:49 PM
MaskRay updated this revision to Diff 256506.Apr 9 2020, 10:19 PM

Fix all tests

This revision was not accepted when it landed; it landed in state Needs Review.Apr 10 2020, 9:27 AM
This revision was automatically updated to reflect the committed changes.