From 9c86656d62eedb7c88c16421680d2be23f72e3d6 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 6 Mar 2014 17:18:34 +0000 Subject: [PATCH] Run -fprofile-instr tests with %clang_cc1. This should help avoid problems like the buildbot fallout from my change in r203085. I left the CodeGenCXX tests alone for now. llvm-svn: 203131 --- clang/test/CodeGen/instr-profile.c | 4 ++-- clang/test/CodeGenObjC/instr-profile.m | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/test/CodeGen/instr-profile.c b/clang/test/CodeGen/instr-profile.c index f753f8306d44..10a68c15d25f 100644 --- a/clang/test/CodeGen/instr-profile.c +++ b/clang/test/CodeGen/instr-profile.c @@ -5,8 +5,8 @@ // (excepting no_usable_data). As such, main() should call every function in // this test. -// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-generate | FileCheck -check-prefix=PGOGEN %s -// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-use=%S/Inputs/instr-profile.pgodata | FileCheck -check-prefix=PGOUSE %s +// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name instr-profile.c %s -o - -emit-llvm -fprofile-instr-generate | FileCheck -check-prefix=PGOGEN %s +// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name instr-profile.c %s -o - -emit-llvm -fprofile-instr-use=%S/Inputs/instr-profile.pgodata | FileCheck -check-prefix=PGOUSE %s // PGOGEN: @[[SLC:__llvm_pgo_ctr[0-9]*]] = private global [4 x i64] zeroinitializer // PGOGEN: @[[IFC:__llvm_pgo_ctr[0-9]*]] = private global [11 x i64] zeroinitializer diff --git a/clang/test/CodeGenObjC/instr-profile.m b/clang/test/CodeGenObjC/instr-profile.m index 22f612b7581a..a7a0880eb60f 100644 --- a/clang/test/CodeGenObjC/instr-profile.m +++ b/clang/test/CodeGenObjC/instr-profile.m @@ -4,8 +4,8 @@ // of running the program generated by the -fprofile-instr-generate case. As // such, main() should call every function in this test. -// RUN: %clang -target x86_64-darwin %s -o - -emit-llvm -S -fprofile-instr-generate | FileCheck -check-prefix=PGOGEN %s -// RUN: %clang -target x86_64-darwin %s -o - -emit-llvm -S -fprofile-instr-use=%S/Inputs/instr-profile.profdata | FileCheck -check-prefix=PGOUSE %s +// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name instr-profile.m %s -o - -emit-llvm -fprofile-instr-generate | FileCheck -check-prefix=PGOGEN %s +// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name instr-profile.m %s -o - -emit-llvm -fprofile-instr-use=%S/Inputs/instr-profile.profdata | FileCheck -check-prefix=PGOUSE %s #ifdef HAVE_FOUNDATION