• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt -strip-dead-debug-info -disable-output < %s
2source_filename = "test/Transforms/StripSymbols/2010-08-25-crash.ll"
3
4; Function Attrs: nounwind ssp
5define i32 @foo() #0 !dbg !9 {
6entry:
7  ret i32 0, !dbg !12
8}
9
10attributes #0 = { nounwind ssp }
11
12!llvm.dbg.cu = !{!0}
13!llvm.module.flags = !{!8}
14
15!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 2.8 (trunk 112062)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !3)
16!1 = !DIFile(filename: "/tmp/a.c", directory: "/Volumes/Lalgate/clean/D.CW")
17!2 = !{}
18!3 = !{!4}
19!4 = !DIGlobalVariableExpression(var: !5, expr: !DIExpression())
20!5 = !DIGlobalVariable(name: "i", linkageName: "i", scope: !1, file: !1, line: 2, type: !6, isLocal: true, isDefinition: true)
21!6 = !DIDerivedType(tag: DW_TAG_const_type, scope: !1, file: !1, baseType: !7)
22!7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
23!8 = !{i32 1, !"Debug Info Version", i32 3}
24!9 = distinct !DISubprogram(name: "foo", linkageName: "foo", scope: !1, file: !1, line: 3, type: !10, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !0)
25!10 = !DISubroutineType(types: !11)
26!11 = !{!7}
27!12 = !DILocation(line: 3, column: 13, scope: !13)
28!13 = distinct !DILexicalBlock(scope: !9, file: !1, line: 3, column: 11)
29
30