namespace jitlink {
namespace aarch32 {
-using namespace support;
-using namespace support::endian;
-
/// Encode 22-bit immediate value for branch instructions without J1J2 range
/// extension (formats B T4, BL T1 and BLX T2).
///
}
Expected<int64_t> readAddendData(LinkGraph &G, Block &B, const Edge &E) {
- endianness Endian = G.getEndianness();
- assert(Endian != native && "Declare as little or big explicitly");
+ support::endianness Endian = G.getEndianness();
+ assert(Endian != support::native && "Declare as little or big explicitly");
Edge::Kind Kind = E.getKind();
const char *BlockWorkingMem = B.getContent().data();
switch (Kind) {
case Data_Delta32:
- return SignExtend64<32>((Endian == little) ? read32<little>(FixupPtr)
- : read32<big>(FixupPtr));
+ return SignExtend64<32>(support::endian::read32(FixupPtr, Endian));
default:
return make_error<JITLinkError>(
"In graph " + G.getName() + ", section " + B.getSection().getName() +