1# RUN: llc -mtriple=aarch64 -run-pass=patchable-function %s -o - | FileCheck %s 2 3## The initial .loc covers PATCHABLE_FUNCTION_ENTER. 4## Emitting a new .loc may create a prologue_end prematurely. 5# CHECK: name: empty 6# CHECK: bb.0.entry 7# CHECK: PATCHABLE_FUNCTION_ENTER{{$}} 8# CHECK-NEXT: RET undef $lr, debug-location !DILocation(line: 1, 9 10--- | 11 define void @empty() #0 !dbg !7 { 12 entry: 13 ret void, !dbg !10 14 } 15 16 attributes #0 = { "patchable-function-entry"="1" } 17 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 11.0.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None) 18 !1 = !DIFile(filename: "a.c", directory: "/tmp") 19 !2 = !{} 20 !3 = !{i32 7, !"Dwarf Version", i32 4} 21 !4 = !{i32 2, !"Debug Info Version", i32 3} 22 !5 = !{i32 1, !"wchar_size", i32 4} 23 !6 = !{!"clang version 11.0.0 "} 24 !7 = distinct !DISubprogram(name: "empty", scope: !1, file: !1, line: 1, type: !8, scopeLine: 1, flags: DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2) 25 !8 = !DISubroutineType(types: !9) 26 !9 = !{null} 27 !10 = !DILocation(line: 1, column: 61, scope: !7) 28 29... 30--- 31name: empty 32alignment: 4 33tracksRegLiveness: true 34body: | 35 bb.0.entry: 36 liveins: $lr 37 RET undef $lr, debug-location !10 38 39... 40