Author: Andy Wingo Date: 2020-12-07T16:17:32+01:00 New Revision: d823cc7cad1d8fb61cac7fa2437a5191740804f5
URL: https://github.com/llvm/llvm-project/commit/d823cc7cad1d8fb61cac7fa2437a5191740804f5 DIFF: https://github.com/llvm/llvm-project/commit/d823cc7cad1d8fb61cac7fa2437a5191740804f5.diff LOG: [WebAssembly][MC] Fix placement of table section The table section goes after functions. Differential Revision: https://reviews.llvm.org/D92323 Added: Modified: llvm/lib/MC/WasmObjectWriter.cpp Removed: ################################################################################ diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp index ab520ddcbe5d..211f0de3d242 100644 --- a/llvm/lib/MC/WasmObjectWriter.cpp +++ b/llvm/lib/MC/WasmObjectWriter.cpp @@ -1787,10 +1787,10 @@ uint64_t WasmObjectWriter::writeOneObject(MCAssembler &Asm, writeTypeSection(Signatures); writeImportSection(Imports, DataSize, TableElems.size()); writeFunctionSection(Functions); + writeTableSection(Tables); // Skip the "memory" section; we import the memory instead. writeEventSection(Events); writeGlobalSection(Globals); - writeTableSection(Tables); writeExportSection(Exports); writeElemSection(TableElems); writeDataCountSection(); _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits