mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-02 18:58:15 +00:00
Use write32le instead of write32<little>.
llvm-svn: 325384
This commit is contained in:
parent
1184253891
commit
e351c3a438
@ -18,6 +18,7 @@
|
||||
|
||||
using namespace llvm;
|
||||
using namespace llvm::wasm;
|
||||
using namespace llvm::support::endian;
|
||||
using namespace lld;
|
||||
using namespace lld::wasm;
|
||||
|
||||
@ -66,7 +67,7 @@ static void applyRelocation(uint8_t *Buf, const OutputRelocation &Reloc) {
|
||||
break;
|
||||
case R_WEBASSEMBLY_TABLE_INDEX_I32:
|
||||
case R_WEBASSEMBLY_MEMORY_ADDR_I32:
|
||||
support::endian::write32<support::little>(Buf, Reloc.Value);
|
||||
write32le(Buf, Reloc.Value);
|
||||
break;
|
||||
default:
|
||||
llvm_unreachable("unknown relocation type");
|
||||
|
Loading…
Reference in New Issue
Block a user