From 9423f5ef56d23c099987ceec2a140fe9efa47934 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Wed, 5 Jun 2019 21:11:06 +0000 Subject: [PATCH] Fix FileCheck prefixes in test case. llvm-svn: 362651 --- clang/test/CodeGenObjC/local-static-block.m | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clang/test/CodeGenObjC/local-static-block.m b/clang/test/CodeGenObjC/local-static-block.m index 67ede63..4d52029 100644 --- a/clang/test/CodeGenObjC/local-static-block.m +++ b/clang/test/CodeGenObjC/local-static-block.m @@ -1,7 +1,11 @@ -// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm %s -o %t-64.ll -// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.ll %s +// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s // rdar: // 8390455 +// CHECK: @ArrayRecurs = internal global +// CHECK: @FUNC.ArrayRecurs = internal global +// CHECK: @FUNC.ArrayRecurs.1 = internal global +// CHECK: @FUNC1.ArrayRecurs = internal global + @class NSArray; static NSArray *(^ArrayRecurs)(NSArray *addresses, unsigned long level) = ^(NSArray *addresses, unsigned long level) { @@ -53,7 +57,7 @@ void FUNC2() { }; } -// CHECK-LABEL-LP64: define void @FUNC2( +// CHECK-LABEL: define void @FUNC2( // CHECK: define internal void @_block_invoke{{.*}}( // CHECK: call void %{{.*}}(i8* bitcast ({ i8**, i32, i32, i8*, %struct.__block_descriptor* }* @__block_literal_global{{.*}} to i8*), i32 %{{.*}}) @@ -70,7 +74,3 @@ void FUNC1() }; ArrayRecurs(address, level); } -// CHECK-LP64: @ArrayRecurs = internal global -// CHECK-LP64: @FUNC.ArrayRecurs = internal global -// CHECK-LP64: @FUNC.ArrayRecurs.1 = internal global -// CHECK-LP64: @FUNC1.ArrayRecurs = internal global -- 2.7.4