[llvm] [WebAssembly] Implement the `.reloc` directive for WASM (PR #146952)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 11:46:15 PDT 2025


================
@@ -0,0 +1,29 @@
+# RUN: llvm-mc -triple=wasm32 %s | FileCheck --check-prefix=PRINT %s
+# RUN: llvm-mc -filetype=obj -triple=wasm32 %s | llvm-readobj -r - | FileCheck %s
+
+load_function_index_func:
+  .functype load_function_index_func () -> (i32)
----------------
SingleAccretion wrote:

> The load could certainly be deleted and the function made to return just the address I suppose.

Done.

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


More information about the llvm-commits mailing list