Use write32le instead of write32<little>.

llvm-svn: 325384
This commit is contained in:
Rui Ueyama 2018-02-16 20:38:15 +00:00
parent 1184253891
commit e351c3a438

View File

@ -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");