[PATCH] D42080: [WebAssembly] Symbol changes #2: Table relocs, LLVM

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 13:54:22 PST 2018


sbc100 added inline comments.


================
Comment at: lib/MC/WasmObjectWriter.cpp:608
+    case wasm::R_WEBASSEMBLY_TABLE_INDEX_SLEB: {
+      uint32_t TableIndex = getProvisionalTableIndex(RelEntry);
+      WritePatchableSLEB(Stream, TableIndex, Offset);
----------------
Can you just use getRelocationIndexValue() here and drop getProvisionalTableIndex() completely?


Repository:
  rL LLVM

https://reviews.llvm.org/D42080





More information about the llvm-commits mailing list