[lld] [lld][WebAssembly] Don't export deps for unused stub symbols (PR #173422)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 23 14:52:28 PST 2025


================
@@ -1,7 +1,17 @@
 target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128-ni:1:10:20"
 target triple = "wasm32-unknown-unknown"
 
-define void @foo() local_unnamed_addr {
+define void @foo() {
+entry:
+  ret void
+}
+
+define void @baz() {
+entry:
+  ret void
+}
+
+define void @quux() {
----------------
sbc100 wrote:

Can you make a new input file rather than adding to this (since this one is just called `foo` I think its good it just defines `foo`)

https://github.com/llvm/llvm-project/pull/173422


More information about the llvm-commits mailing list