Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -generate-arange-section -relocation-model=pic < %s | FileCheck %s
      2 
      3 ; CHECK:   .data
      4 ; CHECK-NOT: .section
      5 ; CHECK: .L_ZTId.DW.stub:
      6 
      7 ; CHECK:  .data
      8 ; CHECK-NEXT: .Lsec_end0:
      9 
     10 target triple = "x86_64-linux-gnu"
     11 
     12 @_ZTId = external constant i8*
     13 @zed = global [1 x void ()*] [void ()* @bar]
     14 
     15 define void @foo() !dbg !4 {
     16   ret void
     17 }
     18 
     19 define void @bar() personality i8* bitcast (void ()* @foo to i8*) !dbg !9 {
     20   invoke void @foo()
     21           to label %invoke.cont unwind label %lpad
     22 
     23 invoke.cont:                                      ; preds = %0
     24   ret void
     25 
     26 lpad:                                             ; preds = %0
     27   %tmp1 = landingpad { i8*, i32 }
     28           filter [1 x i8*] [i8* bitcast (i8** @_ZTId to i8*)]
     29   ret void
     30 }
     31 
     32 !llvm.dbg.cu = !{!0}
     33 !llvm.module.flags = !{!17, !18}
     34 
     35 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.7.0 (trunk 234308) (llvm/trunk 234310)", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !10, imports: !2)
     36 !1 = !DIFile(filename: "/Users/espindola/llvm/<stdin>", directory: "/Users/espindola/llvm/build")
     37 !2 = !{}
     38 !3 = !{!4, !9}
     39 !4 = distinct !DISubprogram(name: "foo", linkageName: "foo", scope: !5, file: !5, line: 1, type: !6, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, variables: !2)
     40 !5 = !DIFile(filename: "/Users/espindola/llvm/test.cpp", directory: "/Users/espindola/llvm/build")
     41 !6 = !DISubroutineType(types: !7)
     42 !7 = !{null, !8}
     43 !8 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
     44 !9 = distinct !DISubprogram(name: "bar_d", linkageName: "bar", scope: !5, file: !5, line: 3, type: !6, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, variables: !2)
     45 !10 = !{!11}
     46 !11 = !DIGlobalVariable(name: "zed", scope: !0, file: !5, line: 6, type: !12, isLocal: false, isDefinition: true, variable: [1 x void ()*]* @zed)
     47 !12 = !DICompositeType(tag: DW_TAG_array_type, baseType: !13, size: 64, align: 64, elements: !15)
     48 !13 = !DIDerivedType(tag: DW_TAG_typedef, name: "vifunc", file: !5, line: 5, baseType: !14)
     49 !14 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !6, size: 64, align: 64)
     50 !15 = !{!16}
     51 !16 = !DISubrange(count: 1)
     52 !17 = !{i32 2, !"Dwarf Version", i32 4}
     53 !18 = !{i32 2, !"Debug Info Version", i32 3}
     54