diff options
author | Devang Patel <dpatel@apple.com> | 2010-06-16 19:39:45 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-06-16 19:39:45 +0000 |
commit | 4c470956657366ead4b03f9cefa9034eaec5b71d (patch) | |
tree | f9f20e733c6ae19526b2298b580a743211ce4fa4 /test | |
parent | e96af56a5baf1db88ba1ed6adf83084ea0a92ae5 (diff) | |
download | llvm-4c470956657366ead4b03f9cefa9034eaec5b71d.tar.gz llvm-4c470956657366ead4b03f9cefa9034eaec5b71d.tar.bz2 llvm-4c470956657366ead4b03f9cefa9034eaec5b71d.tar.xz |
Be specific. Use FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106135 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll b/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll index 82551d077f..812d3720d6 100644 --- a/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll +++ b/test/DebugInfo/2010-06-01-DeadArg-DbgInfo.ll @@ -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) |