xref: /llvm-project/llvm/test/MC/WebAssembly/compile-twice.ll (revision 105bdc25573288b9abf2d5d81313ec549a7e8af7)
1; Check that there is no persistent state in the WabAssembly emitter that cause
2; issues when reusing the pass manager.
3; RUN: llc -mtriple=wasm32-unknown-unknown -compile-twice -filetype=obj %s -o -
4
5; Force the creation of a DWARF section
6!llvm.dbg.cu = !{!0}
7!llvm.module.flags = !{!3, !4}
8
9@myglobal = global i32 0, align 4
10
11!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "LLVM", isOptimized: true, emissionKind: FullDebug)
12!1 = !DIFile(filename: "<stdin>", directory: "/")
13!3 = !{i32 2, !"Dwarf Version", i32 4}
14!4 = !{i32 2, !"Debug Info Version", i32 3}
15