diff options
| author | Dan Gohman <dan433584@gmail.com> | 2019-02-01 22:27:34 +0000 |
|---|---|---|
| committer | Dan Gohman <dan433584@gmail.com> | 2019-02-01 22:27:34 +0000 |
| commit | f726e4454c55d55d37bd1a05065fc392d89e05c8 (patch) | |
| tree | f9b73f3aa270d37fa71e0859fe0d83b040f62b1e /llvm/test/CodeGen | |
| parent | cae8459ad2d4cce5806bc8d64ef0020bc20e3252 (diff) | |
| download | bcm5719-llvm-f726e4454c55d55d37bd1a05065fc392d89e05c8.tar.gz bcm5719-llvm-f726e4454c55d55d37bd1a05065fc392d89e05c8.zip | |
[WebAssembly] Add codegen support for the import_field attribute
This adds the LLVM side of https://reviews.llvm.org/D57602 -- the
import_field attribute. See that patch for details.
Differential Revision: https://reviews.llvm.org/D57603
llvm-svn: 352931
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/WebAssembly/import-module.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/import-module.ll b/llvm/test/CodeGen/WebAssembly/import-module.ll index a8202a77acb..0cf0f2f25e0 100644 --- a/llvm/test/CodeGen/WebAssembly/import-module.ll +++ b/llvm/test/CodeGen/WebAssembly/import-module.ll @@ -12,8 +12,9 @@ define void @test() { declare void @foo() #0 declare void @plain() -attributes #0 = { "wasm-import-module"="bar" } +attributes #0 = { "wasm-import-module"="bar" "wasm-import-name"="qux" } ; CHECK-NOT: .import_module plain ; CHECK: .import_module foo, bar +; CHECK: .import_name foo, qux ; CHECK-NOT: .import_module plain |

