[PATCH] D91637: [WebAssembly] Only emit indirect function table import if needed

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 25 08:04:27 PST 2020


sbc100 added inline comments.


================
Comment at: llvm/lib/Object/WasmObjectFile.cpp:506
   ImportedEvents.reserve(Imports.size());
+  ImportedTables.reserve(Imports.size());
   for (auto &I : Imports) {
----------------
We should probably get smarter about these over allocations now that we have so many different import types here.

Unrelated to this CL though.




Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91637



More information about the llvm-commits mailing list