• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-dis < %s.bc | FileCheck %s
2; RUN: verify-uselistorder < %s.bc
3
4; CHECK: define void @foo() !dbg [[SP:![0-9]+]]
5define void @foo() {
6  ret void
7}
8
9!llvm.module.flags = !{!0}
10!0 = !{i32 2, !"Debug Info Version", i32 3}
11
12!llvm.dbg.cu = !{!1}
13!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, emissionKind: FullDebug)
14!2 = !DIFile(filename: "foo.c", directory: "/path/to/dir")
15; CHECK: [[SP]] = distinct !DISubprogram
16!3 = distinct !DISubprogram(file: !2, scope: !2, line: 51, name: "foo", function: void ()* @foo, type: !4)
17!4 = !DISubroutineType(types: !{})
18