2011-10-28 05:29:47 +00:00
|
|
|
; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s --check-prefix=LINUX
|
|
|
|
; RUN: llc -mtriple=x86_64-darwin < %s | FileCheck %s --check-prefix=DARWIN
|
2011-10-27 06:44:11 +00:00
|
|
|
|
2011-10-28 05:29:47 +00:00
|
|
|
@yyyy = common global i32 0, align 4
|
2011-10-27 06:44:11 +00:00
|
|
|
|
|
|
|
!llvm.dbg.cu = !{!0}
|
2013-11-22 21:49:45 +00:00
|
|
|
!llvm.module.flags = !{!9}
|
2011-10-27 06:44:11 +00:00
|
|
|
|
2014-02-04 01:23:52 +00:00
|
|
|
!0 = metadata !{i32 786449, metadata !8, i32 12, metadata !"clang version 3.1 (trunk 143009)", i1 true, metadata !"", i32 0, metadata !1, metadata !1, metadata !1, metadata !3, metadata !1, metadata !""} ; [ DW_TAG_compile_unit ]
|
|
|
|
!1 = metadata !{}
|
2013-02-02 05:56:24 +00:00
|
|
|
!3 = metadata !{metadata !5}
|
2013-03-11 22:37:40 +00:00
|
|
|
!5 = metadata !{i32 720948, i32 0, null, metadata !"yyyy", metadata !"yyyy", metadata !"", metadata !6, i32 1, metadata !7, i32 0, i32 1, i32* @yyyy, null} ; [ DW_TAG_variable ]
|
2013-03-28 02:44:59 +00:00
|
|
|
!6 = metadata !{i32 720937, metadata !8} ; [ DW_TAG_file_type ]
|
|
|
|
!7 = metadata !{i32 720932, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
|
2013-03-17 21:13:55 +00:00
|
|
|
!8 = metadata !{metadata !"z.c", metadata !"/home/nicholas"}
|
2011-10-27 06:44:11 +00:00
|
|
|
|
2013-09-20 23:22:52 +00:00
|
|
|
; Verify that "yyyy" ended up in the stringpool.
|
|
|
|
; LINUX: .section .debug_str,"MS",@progbits,1
|
|
|
|
; LINUX: yyyy
|
|
|
|
; DARWIN: .section __DWARF,__debug_str,regular,debug
|
|
|
|
; DARWIN: yyyy
|
|
|
|
|
2011-10-28 05:29:47 +00:00
|
|
|
; Verify that we refer to 'yyyy' with a relocation.
|
2012-12-27 02:14:01 +00:00
|
|
|
; LINUX: .long .Linfo_string3 # DW_AT_name
|
2013-10-29 05:49:41 +00:00
|
|
|
; LINUX-NEXT: .long {{[0-9]+}} # DW_AT_type
|
2012-08-24 01:14:27 +00:00
|
|
|
; LINUX-NEXT: # DW_AT_external
|
2011-10-27 06:44:11 +00:00
|
|
|
; LINUX-NEXT: .byte 1 # DW_AT_decl_file
|
2011-10-28 05:29:47 +00:00
|
|
|
; LINUX-NEXT: .byte 1 # DW_AT_decl_line
|
2011-10-27 06:44:11 +00:00
|
|
|
; LINUX-NEXT: .byte 9 # DW_AT_location
|
|
|
|
; LINUX-NEXT: .byte 3
|
2011-10-28 05:29:47 +00:00
|
|
|
; LINUX-NEXT: .quad yyyy
|
2011-10-27 06:44:11 +00:00
|
|
|
|
2011-10-28 05:29:47 +00:00
|
|
|
; Verify that we refer to 'yyyy' without a relocation.
|
2013-10-29 05:49:41 +00:00
|
|
|
; DARWIN: Lset[[ID:[0-9]+]] = Linfo_string3-Linfo_string ## DW_AT_name
|
|
|
|
; DARWIN-NEXT: .long Lset[[ID]]
|
|
|
|
; DARWIN-NEXT: .long {{[0-9]+}} ## DW_AT_type
|
2013-09-04 22:21:24 +00:00
|
|
|
; DARWIN-NEXT: ## DW_AT_external
|
2011-10-27 06:44:11 +00:00
|
|
|
; DARWIN-NEXT: .byte 1 ## DW_AT_decl_file
|
2011-10-28 05:29:47 +00:00
|
|
|
; DARWIN-NEXT: .byte 1 ## DW_AT_decl_line
|
2011-10-27 06:44:11 +00:00
|
|
|
; DARWIN-NEXT: .byte 9 ## DW_AT_location
|
|
|
|
; DARWIN-NEXT: .byte 3
|
2011-10-28 05:29:47 +00:00
|
|
|
; DARWIN-NEXT: .quad _yyyy
|
2013-11-22 21:49:45 +00:00
|
|
|
!9 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|