diff options
| author | Thomas Lively <tlively@google.com> | 2019-01-17 02:29:55 +0000 |
|---|---|---|
| committer | Thomas Lively <tlively@google.com> | 2019-01-17 02:29:55 +0000 |
| commit | cbda16eb8ebf52e10a44bd6f15e2743d69e9632a (patch) | |
| tree | 43a795712422a63a3f60e732ac9131ceaa0bfd32 /llvm/test/CodeGen/WebAssembly | |
| parent | 2a0868ff48cbf9b3b57858c0f95b89607b69aac9 (diff) | |
| download | bcm5719-llvm-cbda16eb8ebf52e10a44bd6f15e2743d69e9632a.tar.gz bcm5719-llvm-cbda16eb8ebf52e10a44bd6f15e2743d69e9632a.zip | |
[WebAssembly] Parse llvm.ident into producers section
llvm-svn: 351413
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly')
| -rw-r--r-- | llvm/test/CodeGen/WebAssembly/custom-sections.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/custom-sections.ll b/llvm/test/CodeGen/WebAssembly/custom-sections.ll index cf21b0af4fb..e92c0f8f3a8 100644 --- a/llvm/test/CodeGen/WebAssembly/custom-sections.ll +++ b/llvm/test/CodeGen/WebAssembly/custom-sections.ll @@ -10,6 +10,9 @@ target triple = "wasm32-unknown-unknown" !2 = !{ !"green", !"qux" } !wasm.custom_sections = !{ !0, !1, !2 } +!llvm.ident = !{!3} +!3 = !{!"clang version 123"} + ; CHECK: .section .custom_section.red,"",@ ; CHECK-NEXT: .ascii "foo" @@ -18,3 +21,13 @@ target triple = "wasm32-unknown-unknown" ; CHECK: .section .custom_section.green,"",@ ; CHECK-NEXT: .ascii "qux" + +; CHECK: .section .custom_section.producers,"",@ +; CHECK-NEXT: .int8 1 +; CHECK-NEXT: .int8 12 +; CHECK-NEXT: .ascii "processed-by" +; CHECK-NEXT: .int8 1 +; CHECK-NEXT: .int8 5 +; CHECK-NEXT: .ascii "clang" +; CHECK-NEXT: .int8 3 +; CHECK-NEXT: .ascii "123" |

