[PATCH] D105519: [WebAssembly] Deduplicate imports of the same module name, field name, and type

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 12 13:48:57 PDT 2021


sbc100 added inline comments.


================
Comment at: lld/wasm/SyntheticSections.cpp:126
+  llvm::Optional<StringRef> module;
+  llvm::Optional<StringRef> name;
+  if (auto *f = dyn_cast<FunctionSymbol>(sym)) {
----------------
Do these need to be optional?   Doesn't `getImportModuleAndName` unconditionally set them?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105519



More information about the llvm-commits mailing list