diff options
author | Sam Clegg <sbc@chromium.org> | 2023-04-13 11:41:27 -0700 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2023-04-13 20:32:05 -0700 |
commit | d43f0889dd5415ca43e246c6a44d688aec454ec6 (patch) | |
tree | 79f5dcc4c1bef2c579aff6a4640e59186acba9d6 /lld/test | |
parent | fd5d0a88dde007728004e43cb28f3c8c0be7b97c (diff) | |
download | llvm-d43f0889dd5415ca43e246c6a44d688aec454ec6.tar.gz |
[lld][WebAssembly] stub objects: Fix handling of LTO libcall dependencies
This actually simplifies the code by performs a pre-pass of the stub
objects prior to LTO.
This should be the final change needed before we can make the switch
on the emscripten side: https://github.com/emscripten-core/emscripten/pull/18905
Differential Revision: https://reviews.llvm.org/D148287
Diffstat (limited to 'lld/test')
-rw-r--r-- | lld/test/wasm/lto/stub-library-libcall.s | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lld/test/wasm/lto/stub-library-libcall.s b/lld/test/wasm/lto/stub-library-libcall.s index 3989e204f0f2..ce88a32dd99d 100644 --- a/lld/test/wasm/lto/stub-library-libcall.s +++ b/lld/test/wasm/lto/stub-library-libcall.s @@ -1,6 +1,6 @@ # RUN: split-file %s %t # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t_main.o %t/main.s -# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t_foo.o %t/foo.s +# RUN: llvm-as %S/Inputs/foo.ll -o %t_foo.o # RUN: llvm-as %S/Inputs/libcall.ll -o %t_libcall.o # RUN: wasm-ld %t_main.o %t_libcall.o %t_foo.o %p/Inputs/stub.so -o %t.wasm # RUN: obj2yaml %t.wasm | FileCheck %s @@ -25,12 +25,6 @@ _start: call func_with_libcall end_function -#--- foo.s -.globl foo -foo: - .functype foo () -> () - end_function - # CHECK: Imports: # CHECK-NEXT: - Module: env # CHECK-NEXT: Field: memcpy @@ -46,4 +40,4 @@ foo: # CHECK-NEXT: Index: 1 # CHECK-NEXT: - Name: foo # CHECK-NEXT: Kind: FUNCTION -# CHECK-NEXT: Index: 2 +# CHECK-NEXT: Index: 3 |