[PATCH] D42003: [WebAssembly] Add --export flag to force a symbol to be exported

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 11:56:37 PST 2018


ruiu added inline comments.


================
Comment at: wasm/Driver.cpp:333
 
+  for (StringRef S : args::getStrings(Args, OPT_export)) {
+    Symbol *Sym = Symtab->find(S);
----------------
This is more common way of doing the same thing:

  for (auto *Arg : Args.filter(OPT_export)) {
    // use Arg->getValue() instead of S
  }


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D42003





More information about the llvm-commits mailing list