From 369721a16ee8c3ea21f3be2a65eb7004d56cca45 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 2 Sep 2010 22:48:26 +0000 Subject: [PATCH] stop looking for #uses comments. llvm-svn: 112898 --- clang/test/CodeGen/const-arithmetic.c | 4 +- clang/test/CodeGen/struct-passing.c | 12 ++--- clang/test/CodeGenCXX/dyncast.cpp | 76 +++++++++------------------ clang/test/CodeGenCXX/vtt-layout.cpp | 6 +-- clang/test/CodeGenObjC/property-dbg.m | 2 +- 5 files changed, 38 insertions(+), 62 deletions(-) diff --git a/clang/test/CodeGen/const-arithmetic.c b/clang/test/CodeGen/const-arithmetic.c index 92c02f0b3dfb..a28f73f004e4 100644 --- a/clang/test/CodeGen/const-arithmetic.c +++ b/clang/test/CodeGen/const-arithmetic.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s -// CHECK: @g1 = global [2 x i8*] [i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -2), i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -46)], align 16 ; <[2 x i8*]*> [#uses=0] -// CHECK: @g2 = global [2 x i8*] [i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -2), i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -46)], align 16 ; <[2 x i8*]*> [#uses=0] +// CHECK: @g1 = global [2 x i8*] [i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -2), i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -46)], align 16 +// CHECK: @g2 = global [2 x i8*] [i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -2), i8* getelementptr (i8* getelementptr inbounds ([0 x %struct.anon]* @g0, i32 0, i32 0, i32 0), i64 -46)], align 16 extern struct { unsigned char a, b; } g0[]; void *g1[] = {g0 + -1, g0 + -23 }; diff --git a/clang/test/CodeGen/struct-passing.c b/clang/test/CodeGen/struct-passing.c index ce1fee41a24e..cbc14d5b7819 100644 --- a/clang/test/CodeGen/struct-passing.c +++ b/clang/test/CodeGen/struct-passing.c @@ -1,10 +1,10 @@ // RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s -// RUN: grep 'declare i32 @f0() readnone ;' %t -// RUN: grep 'declare i32 @f1() readonly ;' %t -// RUN: grep 'declare void @f2(.* sret) ;' %t -// RUN: grep 'declare void @f3(.* sret) ;' %t -// RUN: grep 'declare void @f4(.* byval) ;' %t -// RUN: grep 'declare void @f5(.* byval) ;' %t +// RUN: grep 'declare i32 @f0() readnone' %t +// RUN: grep 'declare i32 @f1() readonly' %t +// RUN: grep 'declare void @f2(.* sret)' %t +// RUN: grep 'declare void @f3(.* sret)' %t +// RUN: grep 'declare void @f4(.* byval)' %t +// RUN: grep 'declare void @f5(.* byval)' %t // PR3835 typedef int T0; diff --git a/clang/test/CodeGenCXX/dyncast.cpp b/clang/test/CodeGenCXX/dyncast.cpp index 906d44b3c5ec..723e12b15fdc 100644 --- a/clang/test/CodeGenCXX/dyncast.cpp +++ b/clang/test/CodeGenCXX/dyncast.cpp @@ -86,15 +86,12 @@ void test1() { // CHECK-LL-NEXT: [[tmp:%.*]] = load %class.test1_A** [[bp]] // CHECK-LL-NEXT: [[v4:%.*]] = icmp ne %class.test1_A* [[tmp]], null // CHECK-LL-NEXT: br i1 [[v4]], label %[[v5:.*]], label %[[v9:.*]] -// CHECK-LL: ;