Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lld][WebAssembly] Fix bitcode LTO order in archive parsing #73095

Merged
merged 7 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename tests
  • Loading branch information
aheejin committed Nov 28, 2023
commit a5591082441c7e9489c758883f1d194ffd8433d8
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"

; Generated from this C++ code:
; Generated from this C++ code and simplified manually:
;
; int foo();
; inline int unused = foo();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"

; Generated from this C++ code:
; Generated from this C++ code and simplified manually:
;
; int foo();
; inline int unused = foo();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
; Check if we handle __cxx_global_var_init in different LTO bitcode modules
; sharing a comdat.
; Check if we handle a variable (here __cxx_global_var_init) in different LTO
bitcode modules sharing a comdat.

; RUN: llvm-as %S/Inputs/global_var_init1.ll -o %t1.o
; RUN: llvm-as %S/Inputs/global_var_init2.ll -o %t2.o
; RUN: llvm-as %S/Inputs/comdat_ordering1.ll -o %t1.o
; RUN: llvm-as %S/Inputs/comdat_ordering2.ll -o %t2.o
; RUN: llvm-ar rcs %t1.a %t1.o
; RUN: llvm-ar rcs %t2.a %t2.o
; RUN: wasm-ld %t1.a %t2.a -o %t.wasm --no-entry --export=main --export=__wasm_call_ctors
Expand Down