2009-11-03 19:06:07 +00:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
|
2013-07-27 01:26:08 +00:00
|
|
|
!llvm.dbg.sp = !{!0}
|
|
|
|
!llvm.dbg.cu = !{!5}
|
2013-11-22 21:49:45 +00:00
|
|
|
!llvm.module.flags = !{!6}
|
2013-07-27 01:26:08 +00:00
|
|
|
|
2014-10-03 20:01:09 +00:00
|
|
|
!0 = metadata !{metadata !"0x2e\00bar\00bar\00_ZN3foo3barEv\003\000\000\000\006\00258\000\003", metadata !4, metadata !1, metadata !2, null, null, null, i32 0, metadata !1} ; [ DW_TAG_subprogram ]
|
|
|
|
!1 = metadata !{metadata !"0x29", metadata !4} ; [ DW_TAG_file_type ]
|
|
|
|
!2 = metadata !{metadata !"0x15\00\000\000\000\000\000\000", metadata !4, metadata !1, null, metadata !3, null} ; [ DW_TAG_subroutine_type ]
|
2013-03-11 22:37:40 +00:00
|
|
|
!3 = metadata !{null}
|
2013-03-17 21:13:55 +00:00
|
|
|
!4 = metadata !{metadata !"/foo", metadata !"bar.cpp"}
|
2014-10-03 20:01:09 +00:00
|
|
|
!5 = metadata !{metadata !"0x11\0012\00\001\00\000\00\000", metadata !4, metadata !3, metadata !3, null, null, null}; [DW_TAG_compile_unit ]
|
2009-11-03 19:06:07 +00:00
|
|
|
|
|
|
|
define <{i32, i32}> @f1() {
|
2013-07-25 06:43:01 +00:00
|
|
|
; CHECK: !dbgx ![[NUMBER:[0-9]+]]
|
2013-01-05 21:39:33 +00:00
|
|
|
%r = insertvalue <{ i32, i32 }> zeroinitializer, i32 4, 1, !dbgx !1
|
2013-07-25 06:43:01 +00:00
|
|
|
; CHECK: !dbgx ![[NUMBER]]
|
2013-01-05 21:39:33 +00:00
|
|
|
%e = extractvalue <{ i32, i32 }> %r, 0, !dbgx !1
|
2009-11-03 19:06:07 +00:00
|
|
|
ret <{ i32, i32 }> %r
|
|
|
|
}
|
2013-01-05 21:39:33 +00:00
|
|
|
|
|
|
|
; CHECK: [protected]
|
2014-10-03 20:01:09 +00:00
|
|
|
!6 = metadata !{i32 1, metadata !"Debug Info Version", i32 2}
|