xref: /llvm-project/lldb/test/API/functionalities/inline-sourcefile/inline.ll (revision 917b404e2ccdcc31d2d64971ad094b80967a240b)
1; ModuleID = '/tmp/t.c'
2source_filename = "/tmp/t.c"
3target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
4
5; Function Attrs: noinline nounwind optnone ssp uwtable(sync)
6define void @f() #0 !dbg !9 {
7entry:
8  call void @stop(), !dbg !13
9  ret void, !dbg !14
10}
11
12declare void @stop(...) #1
13
14attributes #0 = { noinline nounwind optnone ssp uwtable(sync) }
15
16!llvm.dbg.cu = !{!0}
17!llvm.module.flags = !{!2, !3, !4, !5, !6, !7}
18!llvm.ident = !{!8}
19
20!0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, producer: "clang version 18.0.0git (git@github.com:llvm/llvm-project.git 29ee66f4a0967e43a035f147c960743c7b640f2f)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")
21!1 = !DIFile(filename: "/INLINE/inlined.c", directory: "/Volumes/Data/llvm-project", checksumkind: CSK_MD5, checksum: "3183154a5cb31debe9a8e27ca500bc3c")
22!2 = !{i32 7, !"Dwarf Version", i32 5}
23!3 = !{i32 2, !"Debug Info Version", i32 3}
24!4 = !{i32 1, !"wchar_size", i32 4}
25!5 = !{i32 8, !"PIC Level", i32 2}
26!6 = !{i32 7, !"uwtable", i32 1}
27!7 = !{i32 7, !"frame-pointer", i32 1}
28!8 = !{!"clang version 18.0.0git (git@github.com:llvm/llvm-project.git 29ee66f4a0967e43a035f147c960743c7b640f2f)"}
29!9 = distinct !DISubprogram(name: "f", scope: !10, file: !10, line: 2, type: !11, scopeLine: 2, spFlags: DISPFlagDefinition, unit: !0)
30!10 = !DIFile(filename: "/INLINE/inlined.c", directory: "", source: "void stop();
31void f() {
32  // This is inline source code.
33  stop(); // break here
34}
35")
36!11 = !DISubroutineType(types: !12)
37!12 = !{null}
38!13 = !DILocation(line: 4, column: 3, scope: !9)
39!14 = !DILocation(line: 5, column: 1, scope: !9)
40