[PATCH] D130736: [lld][WebAssemby] Demote LazySymbols back to undefined symbols if they are not loaded

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 17:12:32 PDT 2022


dschuff added inline comments.


================
Comment at: lld/wasm/Driver.cpp:577
+    if (auto* s = dyn_cast<LazySymbol>(sym)) {
+      if (s->signature) {
+        LLVM_DEBUG(llvm::dbgs()
----------------
if (s->signature)
is the way to differentiate function symbols from data symbols?


================
Comment at: lld/wasm/Driver.cpp:1048
 
+  // Any remainging lazy symbols should be demoted to Undefined
+  demoteLazySymbols();
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130736



More information about the llvm-commits mailing list