[PATCH] D44979: [ELF] - Make Target::TrapInstr to be uint8_t
Rafael Avila de Espindola via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 28 17:42:30 PDT 2018
espindola added inline comments.
================
Comment at: ELF/Arch/ARM.cpp:63
PltHeaderSize = 32;
- TrapInstr = 0xd4d4d4d4;
+ TrapInstr1 = 0xd4;
// ARM uses Variant 1 TLS
----------------
espindola wrote:
> This is at least odd, as 0xd4 is not a trap on ARM.
>
> Should we just directly represent the fact that the trap instruction has different sizes in different architectures by using an StringRef or ArrayRef?
Also, nop on powerpc64 (which we are getting more support for) is 60 00 00 00.
https://reviews.llvm.org/D44979
More information about the llvm-commits
mailing list