xref: /llvm-project/llvm/test/Transforms/SampleProfile/nodebug.ll (revision 5250e7a0d826de0455e2fa18bd531d823999814a)
1*5250e7a0SFangrui Song; RUN: opt %s -passes=sample-profile -sample-profile-file=%S/Inputs/nodebug.prof
2cee313d2SEric Christopher
3cee313d2SEric Christopherdefine void @foo() !dbg !3 {
4cee313d2SEric Christopher  call void @bar(), !dbg !4
5cee313d2SEric Christopher  ret void
6cee313d2SEric Christopher}
7cee313d2SEric Christopher
8cee313d2SEric Christopherdefine void @bar() {
9cee313d2SEric Christopher  call void @bar()
10cee313d2SEric Christopher  ret void
11cee313d2SEric Christopher}
12cee313d2SEric Christopher
13cee313d2SEric Christopher!llvm.dbg.cu = !{!0}
14cee313d2SEric Christopher!llvm.module.flags = !{!2}
15cee313d2SEric Christopher
16cee313d2SEric Christopher!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1)
17cee313d2SEric Christopher!1 = !DIFile(filename: "t", directory: "/tmp/")
18cee313d2SEric Christopher!2 = !{i32 2, !"Debug Info Version", i32 3}
19cee313d2SEric Christopher!3 = distinct !DISubprogram(name: "a", scope: !1, file: !1, line: 10, unit: !0)
20cee313d2SEric Christopher!4 = !DILocation(line: 10, scope: !3)
21