2012-12-30 10:33:22 +08:00
; RUN: opt -strip-dead-debug-info -disable-output < %s
2016-12-22 08:45:21 +08:00
source_filename = "test/Transforms/StripSymbols/2010-08-25-crash.ll"
; Function Attrs: nounwind ssp
define i32 @foo ( ) #0 !dbg !9 {
2010-08-26 02:52:02 +08:00
entry:
2016-12-22 08:45:21 +08:00
ret i32 0 , !dbg !12
2010-08-26 02:52:02 +08:00
}
2016-12-22 08:45:21 +08:00
attributes #0 = { nounwind ssp }
!llvm.dbg.cu = ! { !0 }
!llvm.module.flags = ! { !8 }
2010-08-26 02:52:02 +08:00
2016-12-22 08:45:21 +08:00
!0 = distinct !DICompileUnit ( language: D W _ L A N G _ C 99 , file: !1 , producer: "clang version 2.8 (trunk 112062)" , isOptimized: true , runtimeVersion: 0 , emissionKind: F u l l D e b u g , enums: !2 , retainedTypes: !2 , globals: !3 )
2015-04-30 00:38:44 +08:00
!1 = !DIFile ( filename: "/tmp/a.c" , directory: "/Volumes/Lalgate/clean/D.CW" )
2016-12-22 08:45:21 +08:00
!2 = ! { }
!3 = ! { !4 }
2017-08-31 02:06:51 +08:00
!4 = !DIGlobalVariableExpression ( var: !5 , expr: !DIExpression ( ) )
2016-12-22 08:45:21 +08:00
!5 = !DIGlobalVariable ( name: "i" , linkageName: "i" , scope: !1 , file: !1 , line: 2 , type: !6 , isLocal: true , isDefinition: true )
!6 = !DIDerivedType ( tag: D W _ T A G _ c o n s t _ type , scope: !1 , file: !1 , baseType: !7 )
!7 = !DIBasicType ( name: "int" , size: 32 , align: 32 , encoding: D W _ A T E _ s i g n e d )
!8 = ! { i32 1 , !"Debug Info Version" , i32 3 }
!9 = distinct !DISubprogram ( name: "foo" , linkageName: "foo" , scope: !1 , file: !1 , line: 3 , type: !10 , isLocal: false , isDefinition: true , virtualIndex: 6 , isOptimized: false , unit: !0 )
!10 = !DISubroutineType ( types: !11 )
!11 = ! { !7 }
!12 = !DILocation ( line: 3 , column: 13 , scope: !13 )
!13 = distinct !DILexicalBlock ( scope: !9 , file: !1 , line: 3 , column: 11 )