xref: /llvm-project/llvm/test/CodeGen/X86/early-cfi-sections.ll (revision 4ab3041acbdc274050d6c53f72619c7455cbc97a)
1; RUN: llc < %s | FileCheck %s
2; CHECK-NOT: .cfi_startproc
3; CHECK:     .cfi_sections .debug_frame
4; CHECK:     .cfi_startproc
5
6target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
7target triple = "x86_64-unknown-linux-gnu"
8
9; Function Attrs: nounwind
10define void @f() #0 !dbg !5 {
11entry:
12  ret void, !dbg !8
13}
14
15attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
16
17!llvm.dbg.cu = !{!0}
18!llvm.module.flags = !{!3, !4}
19
20!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 4.0.0 (trunk 290216)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
21!1 = !DIFile(filename: "test.c", directory: "/tmp")
22!2 = !{}
23!3 = !{i32 2, !"Dwarf Version", i32 4}
24!4 = !{i32 2, !"Debug Info Version", i32 3}
25!5 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 1, type: !6, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)
26!6 = !DISubroutineType(types: !7)
27!7 = !{null}
28!8 = !DILocation(line: 1, column: 1, scope: !5)
29