[PATCH] D148190: [lld][WebAssembly] Trace export of symbols when specified with --trace-symbol. NFC
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 19:34:10 PDT 2023
sbc100 created this revision.
Herald added subscribers: pmatos, asb, wingo, ecnelises, sunfish, jgravelle-google, dschuff.
Herald added a project: All.
sbc100 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148190
Files:
lld/wasm/Driver.cpp
Index: lld/wasm/Driver.cpp
===================================================================
--- lld/wasm/Driver.cpp
+++ lld/wasm/Driver.cpp
@@ -903,8 +903,12 @@
": undefined symbol: " + toString(*needed) +
". Required by " + toString(*sym));
} else {
- LLVM_DEBUG(llvm::dbgs()
- << "force export: " << toString(*needed) << "\n");
+ if (needed->traced)
+ message(toString(stub_file) + ": exported " + toString(*needed) +
+ " due to import of " + name);
+ else
+ LLVM_DEBUG(llvm::dbgs()
+ << "force export: " << toString(*needed) << "\n");
needed->forceExport = true;
if (auto *lazy = dyn_cast<LazySymbol>(needed)) {
lazy->fetch();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148190.513043.patch
Type: text/x-patch
Size: 821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230413/517417d4/attachment.bin>
More information about the llvm-commits
mailing list