diff options
| author | Sam Clegg <sbc@chromium.org> | 2019-05-10 01:52:08 +0000 |
|---|---|---|
| committer | Sam Clegg <sbc@chromium.org> | 2019-05-10 01:52:08 +0000 |
| commit | ea38ac5ba3148e72dc1a260910ef65d2f623e0b5 (patch) | |
| tree | b5472fd8e2136c519abf59c8871b257706977234 /llvm/test/CodeGen/WebAssembly | |
| parent | 2147365484f1b16d945a45890e9b2d75d14e55e1 (diff) | |
| download | bcm5719-llvm-ea38ac5ba3148e72dc1a260910ef65d2f623e0b5.tar.gz bcm5719-llvm-ea38ac5ba3148e72dc1a260910ef65d2f623e0b5.zip | |
[WebAssembly] Don't assume that strongly defined symbols are DSO-local
The current PIC model for WebAssembly is more like ELF in that it
allows symbol interposition.
This means that more functions end up being addressed via the GOT
and fewer directly added to the wasm table.
One effect is a reduction in the number of wasm table entries similar
to the previous attempt in https://reviews.llvm.org/D61539 which was
reverted.
Differential Revision: https://reviews.llvm.org/D61772
llvm-svn: 360402
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly')
| -rw-r--r-- | llvm/test/CodeGen/WebAssembly/call-pic.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/call-pic.ll b/llvm/test/CodeGen/WebAssembly/call-pic.ll index b319ea4924f..53a397ac769 100644 --- a/llvm/test/CodeGen/WebAssembly/call-pic.ll +++ b/llvm/test/CodeGen/WebAssembly/call-pic.ll @@ -7,7 +7,7 @@ declare i32 @foo() declare i32 @bar() declare hidden i32 @hidden_function() -@indirect_func = global i32 ()* @foo +@indirect_func = hidden global i32 ()* @foo @alias_func = hidden alias i32 (), i32 ()* @local_function define i32 @local_function() { |

