Rafael Espindola | 14e1b58 | 2011-05-10 23:14:29 +0000 | [diff] [blame] | 1 | ; RUN: llc %s -mtriple=i686-pc-linux-gnu -o - | FileCheck %s |
Rafael Espindola | fdc3e6f | 2011-05-10 18:39:09 +0000 | [diff] [blame] | 2 | |
| 3 | ; Test that we produce a .debug_frame, not an .eh_frame |
| 4 | |
| 5 | ; CHECK: .cfi_sections .debug_frame |
| 6 | |
Peter Collingbourne | d4bff30 | 2015-11-05 22:03:56 +0000 | [diff] [blame] | 7 | define void @f() nounwind !dbg !0 { |
Rafael Espindola | fdc3e6f | 2011-05-10 18:39:09 +0000 | [diff] [blame] | 8 | entry: |
| 9 | ret void |
| 10 | } |
| 11 | |
David Blaikie | e5a2f70 | 2013-03-08 00:23:31 +0000 | [diff] [blame] | 12 | !llvm.dbg.cu = !{!2} |
Manman Ren | 409558f | 2013-11-22 21:49:45 +0000 | [diff] [blame] | 13 | !llvm.module.flags = !{!7} |
Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 14 | !5 = !{!0} |
Rafael Espindola | fdc3e6f | 2011-05-10 18:39:09 +0000 | [diff] [blame] | 15 | |
Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 16 | !0 = distinct !DISubprogram(name: "f", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, unit: !2, scopeLine: 1, file: !6, scope: !1, type: !3) |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 17 | !1 = !DIFile(filename: "/home/espindola/llvm/test.c", directory: "/home/espindola/llvm/build") |
Adrian Prantl | 75819ae | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 18 | !2 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.0 ()", isOptimized: true, emissionKind: FullDebug, file: !6, enums: !{}, retainedTypes: !{}) |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 19 | !3 = !DISubroutineType(types: !4) |
Duncan P. N. Exon Smith | be7ea19 | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 20 | !4 = !{null} |
Duncan P. N. Exon Smith | a9308c4 | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 21 | !6 = !DIFile(filename: "/home/espindola/llvm/test.c", directory: "/home/espindola/llvm/build") |
Duncan P. N. Exon Smith | e274180 | 2015-03-03 17:24:31 +0000 | [diff] [blame] | 22 | !7 = !{i32 1, !"Debug Info Version", i32 3} |