File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 6
6
# RUN: wasm-ld %t.o %t/libfoo.a %p/Inputs/stub.so -o %t.wasm
7
7
# RUN: obj2yaml %t.wasm | FileCheck %s
8
8
9
- ## The function `bar` is declared in stub.so and depends on `foo`, which happens
10
- ## be in an LTO object, in an archive file.
11
- ## This verifies that stub library dependencies (required exports) can be defined
12
- ## in LTO objects.
9
+ ## The function `bar` is declared in stub.so and depends on `foo`, which in this
10
+ ## case is defined in an LTO object, inside an archive file.
11
+ ## This verifies that stub library dependencies (required exports) can be
12
+ ## defined in LTO objects.
13
13
.functype bar () -> ()
14
14
15
15
.globl _start
Original file line number Diff line number Diff line change @@ -949,11 +949,11 @@ static void processStubLibrariesPreLTO() {
949
949
auto * needed = symtab->find (dep);
950
950
if (needed ) {
951
951
needed->isUsedInRegularObj = true ;
952
- // Like with handleLibcall we have extract any LTO archive members
953
- // that might need to be exported due to stub library symbol being
954
- // used . Without this the LTO object could be extracted during
955
- // processStubLibraries, which is too late since LTO has already
956
- // beeing performed at that point.
952
+ // Like with handleLibcall we have to extract any LTO archive
953
+ // members that might need to be exported due to stub library
954
+ // symbols being referenced . Without this the LTO object could be
955
+ // extracted during processStubLibraries, which is too late since
956
+ // LTO has already being performed at that point.
957
957
if (needed->isLazy () && isa<BitcodeFile>(needed->getFile ())) {
958
958
if (!config->whyExtract .empty ())
959
959
ctx.whyExtractRecords .emplace_back (toString (stub_file),
You can’t perform that action at this time.
0 commit comments