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

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 23 15:24:42 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() {
----------------
aheejin wrote:

What I will create is basically another file with two methods. I can actually reuse this file and `foo` and `bar` here (without adding anything to it) but what I need is a different stub file having one line `foo: bar`. How about creating a new stub file? (You preferred a new file rather than echo'ing it, right?)

Will do that, and tell me what you think

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


More information about the llvm-commits mailing list