[PATCH] D44206: [WebAssembly] Create SyntheticFunction for __wasm_call_ctors earlier

Nicholas Wilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 7 09:34:36 PST 2018


ncw added a comment.

In https://reviews.llvm.org/D44206#1030099, @ruiu wrote:

> I'd guess that the motivation of this change is to start processing global constructors as quickly as possible by putting them at beginning of a file when we execute a wasm binary with a streaming decoder & executor. Am I correct?


Yes, that's right :) There's a TODO to that effect in Writer::assignIndexes, I should probably add a short permanent comment just as well to note that it's desirable for __wasm_call_ctors to come early on.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D44206





More information about the llvm-commits mailing list