[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
Thu Apr 13 10:36:39 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGaca110f9dd17: [lld][WebAssembly] Trace export of symbols when specified with --trace-symbol. (authored by sbc100).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148190/new/
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.513300.patch
Type: text/x-patch
Size: 821 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230413/1647a0b5/attachment.bin>
More information about the llvm-commits
mailing list