[PATCH] D81704: [WebAssembly] Adding 64-bit version of R_WASM_MEMORY_ADDR_* relocs

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 10:52:57 PDT 2020


sbc100 added a comment.

Nice!   lgtm % the extra used of auto.

I'm not sure how strictly to apply the rules here: https://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable.    But I feel like they confirm my hunch these are overuses.   I'm not sure though. and I don't personally care too much either way.   @dschuff what do you think about these uses of auto in this PR?



================
Comment at: lld/wasm/SyntheticSections.cpp:290
     writeGlobal(os, g->global);
+  // TODO(wvo): when do these need I64_CONST?
   for (const Symbol *sym : staticGotSymbols) {
----------------
I think the answer is "for functions symbols never and for data symbols alwasys".

GOT symbols represent offsets into either the table or the memory.

Happy to leave this as followup (PIC output is limited to emscripten today anyway and is likely to change in the official ABI).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81704/new/

https://reviews.llvm.org/D81704





More information about the llvm-commits mailing list