This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Decorate AArch64 instrs with OPERAND_PCREL
ClosedPublic

Authored by rafauler on Mar 23 2018, 3:57 PM.

Details

Summary

This is a canonical way to teach objdump to print the target
symbols for branches when disassembling AArch64 code.

Diff Detail

Event Timeline

rafauler created this revision.Mar 23 2018, 3:57 PM
t.p.northover accepted this revision.Mar 24 2018, 4:06 AM

A nice little change with big benefits! One little nit (no need to reupload here after fixing, I think):

lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp
147

This is UB for negative immediates (at least until C++20). Probably best as * 4.

This revision is now accepted and ready to land.Mar 24 2018, 4:06 AM
This revision was automatically updated to reflect the committed changes.

Thanks for reviewing!