You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.167
Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
parent
e19d552987
commit
b084638f15
@ -1,20 +0,0 @@
|
||||
; RUN: opt < %s -strip -S | FileCheck %s
|
||||
|
||||
; CHECK: foo
|
||||
; CHECK: bar
|
||||
; CHECK: foo
|
||||
; CHECK: bar
|
||||
|
||||
@llvm.used = appending global [2 x i8*] [ i8* bitcast (i32* @foo to i8*), i8* bitcast (i32 ()* @bar to i8*) ], section "llvm.metadata" ; <[2 x i8*]*> [#uses=0]
|
||||
@foo = internal constant i32 41 ; <i32*> [#uses=1]
|
||||
|
||||
define internal i32 @bar() nounwind {
|
||||
entry:
|
||||
ret i32 42
|
||||
}
|
||||
|
||||
define i32 @main() nounwind {
|
||||
entry:
|
||||
ret i32 0
|
||||
}
|
||||
|
@ -1,34 +0,0 @@
|
||||
; RUN: opt -strip-debug < %s -S | FileCheck %s
|
||||
|
||||
; CHECK-NOT: call void @llvm.dbg.value
|
||||
|
||||
source_filename = "test/Transforms/StripSymbols/2010-06-30-StripDebug.ll"
|
||||
|
||||
@x = common global i32 0, !dbg !0
|
||||
|
||||
; Function Attrs: nounwind optsize readnone ssp
|
||||
define void @foo() #0 !dbg !7 {
|
||||
entry:
|
||||
tail call void @llvm.dbg.value(metadata i32 0, metadata !10, metadata !12), !dbg !13
|
||||
ret void, !dbg !14
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind readnone
|
||||
declare void @llvm.dbg.value(metadata, metadata, metadata) #1
|
||||
|
||||
attributes #0 = { nounwind optsize readnone ssp }
|
||||
attributes #1 = { nounwind readnone }
|
||||
|
||||
!llvm.module.flags = !{!4}
|
||||
!llvm.dbg.cu = !{!5}
|
||||
|
||||
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
|
||||
!1 = !DIGlobalVariable(name: "x", scope: !2, file: !2, line: 1, type: !3, isLocal: false, isDefinition: true)
|
||||
!2 = !DIFile(filename: "b.c", directory: "/tmp")
|
||||
!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
||||
!4 = !{i32 1, !"Debug Info Version", i32 3}
|
||||
!5 = distinct !DICompileUnit(language: DW_LANG_C89, file: !2, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, globals: !6)
|
||||
!6 = !{!0}
|
||||
!7 = distinct !DISubprogram(name: "foo", linkageName: "foo", scope: !2, file: !2, line: 2, type: !8, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: true, unit: !5)
|
||||
!8 = !DISubroutineType(types: !9)
|
||||
!9 = !{null}!10 = !DILocalVariable(name: "y", scope: !11, file: !2, line: 3, type: !3)!11 = distinct !DILexicalBlock(scope: !7, file: !2, line: 2)!12 = !DIExpression()!13 = !DILocation(line: 3, scope: !11)!14 = !DILocation(line: 4, scope: !11)
|
@ -1,29 +0,0 @@
|
||||
; RUN: opt -strip-dead-debug-info -disable-output < %s
|
||||
source_filename = "test/Transforms/StripSymbols/2010-08-25-crash.ll"
|
||||
|
||||
; Function Attrs: nounwind ssp
|
||||
define i32 @foo() #0 !dbg !9 {
|
||||
entry:
|
||||
ret i32 0, !dbg !12
|
||||
}
|
||||
|
||||
attributes #0 = { nounwind ssp }
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!8}
|
||||
|
||||
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 2.8 (trunk 112062)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !3)
|
||||
!1 = !DIFile(filename: "/tmp/a.c", directory: "/Volumes/Lalgate/clean/D.CW")
|
||||
!2 = !{}
|
||||
!3 = !{!4}
|
||||
!4 = !DIGlobalVariableExpression(var: !5, expr: !DIExpression())
|
||||
!5 = !DIGlobalVariable(name: "i", linkageName: "i", scope: !1, file: !1, line: 2, type: !6, isLocal: true, isDefinition: true)
|
||||
!6 = !DIDerivedType(tag: DW_TAG_const_type, scope: !1, file: !1, baseType: !7)
|
||||
!7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
||||
!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)
|
||||
|
@ -1,23 +0,0 @@
|
||||
; RUN: opt -strip -S < %s | FileCheck %s
|
||||
; PR10286
|
||||
|
||||
@main_addrs = constant [2 x i8*] [i8* blockaddress(@f, %FOO), i8* blockaddress(@f, %BAR)]
|
||||
; CHECK: @main_addrs = constant [2 x i8*] [i8* blockaddress(@f, %2), i8* blockaddress(@f, %3)]
|
||||
|
||||
declare void @foo() nounwind
|
||||
declare void @bar() nounwind
|
||||
|
||||
define void @f(i8* %indirect.goto.dest) nounwind uwtable ssp {
|
||||
entry:
|
||||
indirectbr i8* %indirect.goto.dest, [label %FOO, label %BAR]
|
||||
|
||||
; CHECK: indirectbr i8* %0, [label %2, label %3]
|
||||
|
||||
FOO:
|
||||
call void @foo()
|
||||
ret void
|
||||
|
||||
BAR:
|
||||
call void @bar()
|
||||
ret void
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
; RUN: opt -S %s -strip -o - | FileCheck %s
|
||||
|
||||
; CHECK-NOT: !llvm.dbg.cu
|
||||
; CHECK-NOT: !llvm.gcov
|
||||
|
||||
; CHECK: !llvm.module.flags = !{!0}
|
||||
; CHECK: !0 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
!llvm.dbg.cu = !{!0}
|
||||
!llvm.module.flags = !{!3}
|
||||
!llvm.gcov = !{!4}
|
||||
|
||||
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 4.0.0 (trunk 284352) (llvm/trunk 284353)", isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, enums: !2)
|
||||
!1 = !DIFile(filename: "/dev/null", directory: "/home/davide/work/llvm/build/bin")
|
||||
!2 = !{}
|
||||
!3 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
!4 = !{!"/scratch/patatino/build/bin/null.gcno", !"/scratch/patatino/build/bin/null.gcda", !0}
|
@ -1,68 +0,0 @@
|
||||
; RUN: opt -strip-dead-debug-info -verify %s -S | FileCheck %s
|
||||
|
||||
; CHECK: ModuleID = '{{.*}}'
|
||||
; CHECK-NOT: "bar"
|
||||
; CHECK-NOT: "abcd"
|
||||
; CHECK-NOT: "GCC"
|
||||
; CHECK: "Globals"
|
||||
; CHECK: "abcd2"
|
||||
|
||||
source_filename = "test/Transforms/StripSymbols/strip-dead-debug-info.ll"
|
||||
|
||||
@xyz = global i32 2, !dbg !0
|
||||
|
||||
; Function Attrs: nounwind readnone
|
||||
declare void @llvm.dbg.value(metadata, metadata, metadata) #0
|
||||
|
||||
; Function Attrs: nounwind readnone ssp
|
||||
define i32 @fn() #1 !dbg !10 {
|
||||
entry:
|
||||
ret i32 0, !dbg !13
|
||||
}
|
||||
|
||||
; Function Attrs: nounwind readonly ssp
|
||||
define i32 @foo(i32 %i) #2 !dbg !15 {
|
||||
entry:
|
||||
tail call void @llvm.dbg.value(metadata i32 %i, metadata !18, metadata !19), !dbg !20
|
||||
%.0 = load i32, i32* @xyz, align 4, !dbg !30
|
||||
ret i32 %.0, !dbg !21
|
||||
}
|
||||
|
||||
attributes #0 = { nounwind readnone }
|
||||
attributes #1 = { nounwind readnone ssp }
|
||||
attributes #2 = { nounwind readonly ssp }
|
||||
|
||||
!llvm.dbg.cu = !{!4, !23, !24, !28}
|
||||
!llvm.module.flags = !{!9}
|
||||
|
||||
!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
|
||||
!1 = !DIGlobalVariable(name: "xyz", scope: !2, file: !2, line: 3, type: !3, isLocal: false, isDefinition: true)
|
||||
!2 = !DIFile(filename: "g.c", directory: "/tmp/")
|
||||
!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
|
||||
!4 = distinct !DICompileUnit(language: DW_LANG_C89, file: !2, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !6)
|
||||
!5 = !{}
|
||||
!6 = !{!7, !0}
|
||||
!7 = !DIGlobalVariableExpression(var: !8, expr: !DIExpression())
|
||||
!8 = !DIGlobalVariable(name: "abcd", scope: !2, file: !2, line: 2, type: !3, isLocal: true, isDefinition: true)
|
||||
!9 = !{i32 1, !"Debug Info Version", i32 3}
|
||||
!10 = distinct !DISubprogram(name: "fn", linkageName: "fn", scope: null, file: !2, line: 6, type: !11, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: true, unit: !4)
|
||||
!11 = !DISubroutineType(types: !12)
|
||||
!12 = !{!3}
|
||||
!13 = !DILocation(line: 6, scope: !14)
|
||||
!14 = distinct !DILexicalBlock(scope: !10, file: !2, line: 6)
|
||||
!15 = distinct !DISubprogram(name: "foo", linkageName: "foo", scope: null, file: !2, line: 7, type: !16, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: true, unit: !4)
|
||||
!16 = !DISubroutineType(types: !17)
|
||||
!17 = !{!3, !3}
|
||||
!18 = !DILocalVariable(name: "i", arg: 1, scope: !15, file: !2, line: 7, type: !3)
|
||||
!19 = !DIExpression()
|
||||
!20 = !DILocation(line: 7, scope: !15)
|
||||
!21 = !DILocation(line: 10, scope: !22)
|
||||
!22 = distinct !DILexicalBlock(scope: !15, file: !2, line: 7)
|
||||
!23 = distinct !DICompileUnit(language: DW_LANG_C89, file: !2, producer: "GCC", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !5)
|
||||
!24 = distinct !DICompileUnit(language: DW_LANG_C89, file: !2, producer: "Globals", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !25)
|
||||
!25 = !{!26}
|
||||
!26 = !DIGlobalVariableExpression(var: !27, expr: !DIExpression(DW_OP_constu, 0, DW_OP_stack_value))
|
||||
!27 = !DIGlobalVariable(name: "abcd2", scope: !2, file: !2, line: 2, type: !3, isLocal: true, isDefinition: true)
|
||||
!28 = distinct !DICompileUnit(language: DW_LANG_C89, file: !2, producer: "InlineTest", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes: !5, globals: !5)
|
||||
!29 = distinct !DISubprogram(name: "inlinefunc", linkageName: "inlinefunc", scope: null, file: !2, line: 7, type: !16, isLocal: false, isDefinition: true, isOptimized: true, unit: !28)
|
||||
!30 = !DILocation(line: 100, scope: !29, inlinedAt: !21)
|
Reference in New Issue
Block a user