2013-04-09 16:51:13 +00:00
|
|
|
; RUN: llvm-link %s %p/2011-08-18-unique-debug-type2.ll -S -o - | FileCheck %s
|
2011-08-18 18:40:49 +00:00
|
|
|
; Test to check only one MDNode for "int" after linking.
|
2013-04-09 16:51:13 +00:00
|
|
|
; CHECK: !"int"
|
2011-08-18 18:40:49 +00:00
|
|
|
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
|
|
|
|
target triple = "x86_64-apple-macosx10.7.0"
|
|
|
|
|
|
|
|
define i32 @foo() nounwind uwtable ssp {
|
|
|
|
entry:
|
|
|
|
ret i32 1, !dbg !10
|
|
|
|
}
|
|
|
|
|
|
|
|
!llvm.dbg.cu = !{!0}
|
|
|
|
|
2013-07-26 20:04:30 +00:00
|
|
|
!0 = metadata !{i32 720913, metadata !12, i32 12, metadata !"clang version 3.0 (trunk 137954)", i1 true, metadata !"", i32 0, metadata !2, metadata !2, metadata !3, metadata !2, null, metadata !""} ; [ DW_TAG_compile_unit ]
|
2011-08-18 18:40:49 +00:00
|
|
|
!1 = metadata !{metadata !2}
|
|
|
|
!2 = metadata !{i32 0}
|
2013-07-26 20:04:30 +00:00
|
|
|
!3 = metadata !{metadata !5}
|
|
|
|
!5 = metadata !{i32 720942, metadata !12, metadata !6, metadata !"foo", metadata !"foo", metadata !"", i32 1, metadata !7, i1 false, i1 true, i32 0, i32 0, i32 0, i32 0, i1 false, i32 ()* @foo, null, null, null, i32 0} ; [ DW_TAG_subprogram ]
|
|
|
|
!6 = metadata !{i32 720937, metadata !12} ; [ DW_TAG_file_type ]
|
2013-08-26 22:39:55 +00:00
|
|
|
!7 = metadata !{i32 720917, metadata !12, metadata !6, metadata !"", i32 0, i64 0, i64 0, i32 0, i32 0, i32 0, metadata !8, i32 0, i32 0, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
|
2011-08-18 18:40:49 +00:00
|
|
|
!8 = metadata !{metadata !9}
|
2013-07-26 20:04:30 +00:00
|
|
|
!9 = metadata !{i32 720932, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
|
2011-08-18 18:40:49 +00:00
|
|
|
!10 = metadata !{i32 1, i32 13, metadata !11, null}
|
2013-07-26 20:04:30 +00:00
|
|
|
!11 = metadata !{i32 720907, metadata !12, metadata !5, i32 1, i32 11, i32 0} ; [ DW_TAG_lexical_block ]
|
|
|
|
!12 = metadata !{metadata !"one.c", metadata !"/private/tmp"}
|