[llvm-commits] [llvm] r106135 - /llvm/trunk/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll

Devang Patel dpatel at apple.com
Wed Jun 16 12:39:46 PDT 2010


Author: dpatel
Date: Wed Jun 16 14:39:45 2010
New Revision: 106135

URL: http://llvm.org/viewvc/llvm-project?rev=106135&view=rev
Log:
Be specific. Use FileCheck.

Modified:
    llvm/trunk/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll

Modified: llvm/trunk/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll?rev=106135&r1=106134&r2=106135&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll (original)
+++ llvm/trunk/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll Wed Jun 16 14:39:45 2010
@@ -1,12 +1,13 @@
-; RUN: llc -O2  %s -o %t
-; RUN: grep "this <- undef" %t | count 0
+; RUN: llc -O2 < %s | FileCheck %s 
 ; Test to check that unused argument 'this' is not undefined in debug info.
-; XFAIL: *
+
+target triple = "x86_64-apple-darwin10.2"
 %struct.foo = type { i32 }
 
 @llvm.used = appending global [1 x i8*] [i8* bitcast (i32 (%struct.foo*, i32)* @_ZN3foo3bazEi to i8*)], section "llvm.metadata" ; <[1 x i8*]*> [#uses=0]
 
 define i32 @_ZN3foo3bazEi(%struct.foo* nocapture %this, i32 %x) nounwind readnone optsize noinline ssp align 2 {
+;CHECK: DEBUG_VALUE: baz:this <- RDI+0
 entry:
   tail call void @llvm.dbg.value(metadata !{%struct.foo* %this}, i64 0, metadata !15)
   tail call void @llvm.dbg.value(metadata !{i32 %x}, i64 0, metadata !16)





More information about the llvm-commits mailing list