Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/DebugInfo/AArch64/disubprogram-debug-trampoline.ll
- This file was added.
; This test verifies that the proper DWARF debug info is emitted | |||||
; for a trampoline function with no target. | |||||
; | |||||
; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump - | FileCheck %s | |||||
; | |||||
; CHECK: DW_TAG_subprogram | |||||
; CHECK: DW_AT_name ("baz") | |||||
; CHECK: DW_AT_trampoline (true) | |||||
; | |||||
; ModuleID = 't.c' | |||||
source_filename = "t.c" | |||||
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" | |||||
target triple = "arm64-apple-macosx13.0.0" | |||||
; Function Attrs: noinline nounwind optnone ssp uwtable(sync) | |||||
define void @baz() #0 !dbg !10 { | |||||
entry: | |||||
ret void, !dbg !14 | |||||
} | |||||
attributes #0 = { noinline nounwind optnone ssp uwtable(sync) "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+crc,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+lse,+neon,+ras,+rcpc,+rdm,+sha2,+sha3,+v8.1a,+v8.2a,+v8.3a,+v8.4a,+v8.5a,+v8a,+zcm,+zcz" } | |||||
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6} | |||||
!llvm.dbg.cu = !{!7} | |||||
!llvm.ident = !{!9} | |||||
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 13, i32 2]} | |||||
!1 = !{i32 7, !"Dwarf Version", i32 4} | |||||
!2 = !{i32 2, !"Debug Info Version", i32 3} | |||||
!3 = !{i32 1, !"wchar_size", i32 4} | |||||
!4 = !{i32 8, !"PIC Level", i32 2} | |||||
!5 = !{i32 7, !"uwtable", i32 1} | |||||
!6 = !{i32 7, !"frame-pointer", i32 1} | |||||
!7 = distinct !DICompileUnit(language: DW_LANG_C11, file: !8, producer: "clang version 17.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None) | |||||
!8 = !DIFile(filename: "t.c", directory: "/") | |||||
!9 = !{!"clang version 17.0.0"} | |||||
!10 = distinct !DISubprogram(name: "baz", scope: !8, file: !8, line: 3, type: !11, scopeLine: 3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition | DISPFlagIsDebugTrampoline, unit: !7, retainedNodes: !13) | |||||
!11 = !DISubroutineType(types: !12) | |||||
!12 = !{null} | |||||
!13 = !{} | |||||
!14 = !DILocation(line: 4, column: 1, scope: !10) | |||||