diff options
author | Dan Gohman <dan433584@gmail.com> | 2017-12-05 17:21:57 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2017-12-05 17:21:57 +0000 |
commit | 314790b9d8379b27f806ce8bbbc5c47ab62a51ed (patch) | |
tree | 74ea50c1546cb8f1a2bab5f5dfb60c0746f52743 /test/CodeGen/WebAssembly | |
parent | 9a320d928477b9ab9670179391152797a6ccde9a (diff) |
[WebAssembly] Don't emit .import_global for the wasm target.
.import_global is used by the ELF-based target and not needed by the wasm
target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/WebAssembly')
-rw-r--r-- | test/CodeGen/WebAssembly/globl.ll | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/CodeGen/WebAssembly/globl.ll b/test/CodeGen/WebAssembly/globl.ll index ba9f6659d7d..c3126d55863 100644 --- a/test/CodeGen/WebAssembly/globl.ll +++ b/test/CodeGen/WebAssembly/globl.ll @@ -4,11 +4,14 @@ target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" target triple = "wasm32-unknown-unknown-wasm" ; CHECK: .globl foo +; CHECK: .type foo,@function ; CHECK-LABEL: foo: -define void @foo() { - ret void +; CHECK: .size foo, +define i32* @foo() { + ret i32* @bar } -; Check import directives - must be at the end of the file -; CHECK: .import_global bar{{$}} -@bar = external global i32 +; CHECK: .type bar,@object +; CHECK: .globl bar +; CHECK: .size bar, 4 +@bar = global i32 2 |