[lld] r325384 - Use write32le instead of write32<little>.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 12:38:15 PST 2018
Author: ruiu
Date: Fri Feb 16 12:38:15 2018
New Revision: 325384
URL: http://llvm.org/viewvc/llvm-project?rev=325384&view=rev
Log:
Use write32le instead of write32<little>.
Modified:
lld/trunk/wasm/InputChunks.cpp
Modified: lld/trunk/wasm/InputChunks.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputChunks.cpp?rev=325384&r1=325383&r2=325384&view=diff
==============================================================================
--- lld/trunk/wasm/InputChunks.cpp (original)
+++ lld/trunk/wasm/InputChunks.cpp Fri Feb 16 12:38:15 2018
@@ -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
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");
More information about the llvm-commits
mailing list