diff options
author | Dan Gohman <dan433584@gmail.com> | 2017-12-06 23:57:11 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2017-12-06 23:57:11 +0000 |
commit | 96d22e12a2ef934283286e2ed1e19a0420476be4 (patch) | |
tree | 1f8bafab14ba25665933988f57acd6bceeb49e59 /llvm/test/MC/WebAssembly/weak.ll | |
parent | a97bd9a7d3bf98ce7af9cc918212470583dd7f87 (diff) | |
download | bcm5719-llvm-96d22e12a2ef934283286e2ed1e19a0420476be4.tar.gz bcm5719-llvm-96d22e12a2ef934283286e2ed1e19a0420476be4.zip |
[WebAssembly] Import the linear memory and function table.
Instead of having .o files contain linear-memory and function table
definitions, use imports. This is more consistent with the stack pointer
being imported, and it's consistent with the linker being the one to
decide whether linear memory and function table are imported or defined
in the linked output. This implements tool-conventions #23.
Differential Revision: https://reviews.llvm.org/D40875
llvm-svn: 319989
Diffstat (limited to 'llvm/test/MC/WebAssembly/weak.ll')
-rw-r--r-- | llvm/test/MC/WebAssembly/weak.ll | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/MC/WebAssembly/weak.ll b/llvm/test/MC/WebAssembly/weak.ll index f7353569024..af177b53595 100644 --- a/llvm/test/MC/WebAssembly/weak.ll +++ b/llvm/test/MC/WebAssembly/weak.ll @@ -12,7 +12,11 @@ entry: ; CHECK: - Type: IMPORT ; CHECK-NEXT: Imports: -; CHECK-NEXT: - Module: env +; CHECK: - Module: env +; CHECK-NEXT: Field: __linear_memory +; CHECK: - Module: env +; CHECK-NEXT: Field: __indirect_function_table +; CHECK: - Module: env ; CHECK-NEXT: Field: weak_external_data ; CHECK-NEXT: Kind: GLOBAL ; CHECK-NEXT: GlobalType: I32 |