[PATCH] D42421: [LLD][ELF] Make --fix-cortex-a53-843419 work on big endian hosts
Peter Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 11:29:05 PST 2018
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL323243: [ELF] Make --fix-cortex-a53-843419 work on big endian hosts (authored by psmith, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D42421?vs=131083&id=131116#toc
Repository:
rL LLVM
https://reviews.llvm.org/D42421
Files:
lld/trunk/ELF/AArch64ErrataFix.cpp
Index: lld/trunk/ELF/AArch64ErrataFix.cpp
===================================================================
--- lld/trunk/ELF/AArch64ErrataFix.cpp
+++ lld/trunk/ELF/AArch64ErrataFix.cpp
@@ -47,6 +47,7 @@
using namespace llvm;
using namespace llvm::ELF;
using namespace llvm::object;
+using namespace llvm::support;
using namespace llvm::support::endian;
using namespace lld;
@@ -357,7 +358,7 @@
uint64_t PatchOff = 0;
const uint8_t *Buf = IS->Data.begin();
- const uint32_t *InstBuf = reinterpret_cast<const uint32_t *>(Buf + Off);
+ const ulittle32_t *InstBuf = reinterpret_cast<const ulittle32_t *>(Buf + Off);
uint32_t Instr1 = *InstBuf++;
uint32_t Instr2 = *InstBuf++;
uint32_t Instr3 = *InstBuf++;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42421.131116.patch
Type: text/x-patch
Size: 731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180123/964f8c60/attachment.bin>
More information about the llvm-commits
mailing list