2009-11-04 03:06:07 +08:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
|
2013-07-27 09:26:08 +08:00
|
|
|
!llvm.dbg.sp = !{!0}
|
|
|
|
!llvm.dbg.cu = !{!5}
|
2013-11-23 05:49:45 +08:00
|
|
|
!llvm.module.flags = !{!6}
|
2013-07-27 09:26:08 +08:00
|
|
|
|
2013-07-25 14:43:01 +08:00
|
|
|
!0 = metadata !{i32 786478, metadata !4, metadata !1, metadata !"bar", metadata !"bar", metadata !"_ZN3foo3barEv", i32 3, metadata !2, i1 false, i1 false, i32 0, i32 0, null, i32 258, i1 false, null, null, i32 0, metadata !1, i32 3} ; [ DW_TAG_subprogram ]
|
2013-03-28 10:44:59 +08:00
|
|
|
!1 = metadata !{i32 41, metadata !4} ; [ DW_TAG_file_type ]
|
2013-07-25 14:43:01 +08:00
|
|
|
!2 = metadata !{i32 21, metadata !4, metadata !1, metadata !"", i32 0, i64 0, i64 0, i64 0, i32 0, null, metadata !3, i32 0, null} ; [ DW_TAG_subroutine_type ]
|
2013-03-12 06:37:40 +08:00
|
|
|
!3 = metadata !{null}
|
2013-03-18 05:13:55 +08:00
|
|
|
!4 = metadata !{metadata !"/foo", metadata !"bar.cpp"}
|
2013-07-27 09:26:08 +08:00
|
|
|
!5 = metadata !{i32 458769, metadata !4, i32 12, metadata !"", i1 true, metadata !"", i32 0, metadata !3, metadata !3, null, null, null, metadata !""}; [DW_TAG_compile_unit ]
|
2009-11-04 03:06:07 +08:00
|
|
|
|
|
|
|
define <{i32, i32}> @f1() {
|
2013-07-25 14:43:01 +08:00
|
|
|
; CHECK: !dbgx ![[NUMBER:[0-9]+]]
|
2013-01-06 05:39:33 +08:00
|
|
|
%r = insertvalue <{ i32, i32 }> zeroinitializer, i32 4, 1, !dbgx !1
|
2013-07-25 14:43:01 +08:00
|
|
|
; CHECK: !dbgx ![[NUMBER]]
|
2013-01-06 05:39:33 +08:00
|
|
|
%e = extractvalue <{ i32, i32 }> %r, 0, !dbgx !1
|
2009-11-04 03:06:07 +08:00
|
|
|
ret <{ i32, i32 }> %r
|
|
|
|
}
|
2013-01-06 05:39:33 +08:00
|
|
|
|
|
|
|
; CHECK: [protected]
|
2013-11-23 05:49:45 +08:00
|
|
|
!6 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|