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