1eab6e94fSChih-Ping Chen; This test verifies that the proper DWARF debug info is emitted 2eab6e94fSChih-Ping Chen; for a trampoline function. 3eab6e94fSChih-Ping Chen; 4eab6e94fSChih-Ping Chen; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump - | FileCheck %s 5eab6e94fSChih-Ping Chen; 6eab6e94fSChih-Ping Chen; CHECK: DW_TAG_subprogram 7eab6e94fSChih-Ping Chen; CHECK-NOT: DW_TAG 8eab6e94fSChih-Ping Chen; CHECK: DW_AT_linkage_name ("sub1_.t0p") 9eab6e94fSChih-Ping Chen; CHECK-NEXT: DW_AT_name ("sub1_.t0p") 10eab6e94fSChih-Ping Chen; CHECK-NEXT: DW_AT_trampoline ("sub1_") 11eab6e94fSChih-Ping Chen; 12eab6e94fSChih-Ping Chen; ModuleID = 'main.f' 13eab6e94fSChih-Ping Chensource_filename = "main.f" 14eab6e94fSChih-Ping Chentarget datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 15eab6e94fSChih-Ping Chentarget triple = "x86_64-unknown-linux-gnu" 16eab6e94fSChih-Ping Chen 17*5a288fa3SNikita Popovdefine internal void @sub1_.t0p(ptr %arg0) #0 !dbg !23 { 18eab6e94fSChih-Ping Chenwrap_start11: 19*5a288fa3SNikita Popov call void (...) @sub1_(ptr %arg0), !dbg !25 20eab6e94fSChih-Ping Chen ret void, !dbg !25 21eab6e94fSChih-Ping Chen} 22eab6e94fSChih-Ping Chen 23eab6e94fSChih-Ping Chendeclare void @sub1_(...) 24eab6e94fSChih-Ping Chen 25eab6e94fSChih-Ping Chenattributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="all" "intel-lang"="fortran" "loopopt-pipeline"="light" "min-legal-vector-width"="0" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" } 26eab6e94fSChih-Ping Chen 27eab6e94fSChih-Ping Chen!llvm.module.flags = !{!12, !13} 28eab6e94fSChih-Ping Chen!llvm.dbg.cu = !{!7} 29eab6e94fSChih-Ping Chen!omp_offload.info = !{} 30eab6e94fSChih-Ping Chen 31eab6e94fSChih-Ping Chen!4 = !DIFile(filename: "main.f", directory: "/dir") 32eab6e94fSChih-Ping Chen!5 = !DISubroutineType(types: !6) 33eab6e94fSChih-Ping Chen!6 = !{null} 34eab6e94fSChih-Ping Chen!7 = distinct !DICompileUnit(language: DW_LANG_Fortran95, file: !4, producer: "Intel(R) Fortran 22.0-1483", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None) 35eab6e94fSChih-Ping Chen!12 = !{i32 2, !"Debug Info Version", i32 3} 36eab6e94fSChih-Ping Chen!13 = !{i32 2, !"Dwarf Version", i32 4} 37eab6e94fSChih-Ping Chen!23 = distinct !DISubprogram(name: "sub1_.t0p", linkageName: "sub1_.t0p", scope: !4, file: !4, type: !5, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !7, retainedNodes: !24, targetFuncName: "sub1_") 38eab6e94fSChih-Ping Chen!24 = !{} 39eab6e94fSChih-Ping Chen!25 = !DILocation(line: 0, scope: !23) 40