[lld] [lld][WebAssembly] Fix bitcode LTO order in archive parsing (PR #73095)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 12:45:32 PST 2023
================
@@ -0,0 +1,42 @@
+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:
+;
+; int foo();
+; inline int unused = foo();
+;
+; int main() {
+; return foo();
+; }
----------------
aheejin wrote:
Hmm, no, turns out I can't really simplify the contents of `@__cxx_global_var_init` much. Even if I try to simplify it a little, the unused contents will be somehow deleted and `@__cxx_global_var_init` itself is deleted. Will rename the tests, and clarify the comment to say it is simplified after generation. (I think it is still better to have what it is generated from)
https://github.com/llvm/llvm-project/pull/73095
More information about the llvm-commits
mailing list