llvm.org GIT mirror llvm / 4c47095
Be specific. Use FileCheck. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106135 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 10 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llc -O2 %s -o %t
1 ; RUN: grep "this <- undef" %t | count 0
0 ; RUN: llc -O2 < %s | FileCheck %s
21 ; Test to check that unused argument 'this' is not undefined in debug info.
3 ; XFAIL: *
2
3 target triple = "x86_64-apple-darwin10.2"
44 %struct.foo = type { i32 }
55
66 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 (%struct.foo*, i32)* @_ZN3foo3bazEi to i8*)], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0]
77
88 define i32 @_ZN3foo3bazEi(%struct.foo* nocapture %this, i32 %x) nounwind readnone optsize noinline ssp align 2 {
9 ;CHECK: DEBUG_VALUE: baz:this <- RDI+0
910 entry:
1011 tail call void @llvm.dbg.value(metadata !{%struct.foo* %this}, i64 0, metadata !15)
1112 tail call void @llvm.dbg.value(metadata !{i32 %x}, i64 0, metadata !16)