All other code in MachODump.cpp uses the same comparison, ((r_length & 0x1) == 1), for distinguishing between the two, while the code in llvm-objdump.cpp seemed to be incorrect.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM.
I believe thumb mode uses 3/2 in the length field, rather than 1/0. Would you be interested in adding support and a test case for that too?
Comment Actions
Oops - I didn't look closely enough: I thought you were just comparing against 1, but you're actually masking with 0x1 first, so this should work as-is for both ARM and Thumb encodings.