From 04a0914a66185f258825878aad2adf94bc4a9d5b Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 23 Jan 2014 02:54:23 +0000 Subject: [PATCH] test/CodeGenCXX: Give instr-profile exception tests their own file This test requires asserts for now, and exception handling has an awkward structure that leads to extra run lines. Because of this, the test file's not a great place for other C++ PGO tests, but instr-profile.cpp is obviously the better name for them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199863 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../{instr-profile.pgodata => instr-profile-throws.pgodata} | 0 .../{instr-profile.cpp => instr-profile-throws.cpp} | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename test/CodeGenCXX/Inputs/{instr-profile.pgodata => instr-profile-throws.pgodata} (100%) rename test/CodeGenCXX/{instr-profile.cpp => instr-profile-throws.cpp} (93%) diff --git a/test/CodeGenCXX/Inputs/instr-profile.pgodata b/test/CodeGenCXX/Inputs/instr-profile-throws.pgodata similarity index 100% rename from test/CodeGenCXX/Inputs/instr-profile.pgodata rename to test/CodeGenCXX/Inputs/instr-profile-throws.pgodata diff --git a/test/CodeGenCXX/instr-profile.cpp b/test/CodeGenCXX/instr-profile-throws.cpp similarity index 93% rename from test/CodeGenCXX/instr-profile.cpp rename to test/CodeGenCXX/instr-profile-throws.cpp index da9f6fb1c5..7b870c352b 100644 --- a/test/CodeGenCXX/instr-profile.cpp +++ b/test/CodeGenCXX/instr-profile-throws.cpp @@ -10,8 +10,8 @@ // RUN: %clangxx %s -o - -emit-llvm -S -fprofile-instr-generate -target %itanium_abi_triple | FileCheck -check-prefix=PGOGEN %s // RUN: %clangxx %s -o - -emit-llvm -S -fprofile-instr-generate -target %itanium_abi_triple | FileCheck -check-prefix=PGOGEN-EXC %s -// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-use=%S/Inputs/instr-profile.pgodata -target %itanium_abi_triple | FileCheck -check-prefix=PGOUSE %s -// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-use=%S/Inputs/instr-profile.pgodata -target %itanium_abi_triple | FileCheck -check-prefix=PGOUSE-EXC %s +// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-use=%S/Inputs/instr-profile-throws.pgodata -target %itanium_abi_triple | FileCheck -check-prefix=PGOUSE %s +// RUN: %clang %s -o - -emit-llvm -S -fprofile-instr-use=%S/Inputs/instr-profile-throws.pgodata -target %itanium_abi_triple | FileCheck -check-prefix=PGOUSE-EXC %s // PGOGEN: @[[THC:__llvm_pgo_ctr[0-9]*]] = private global [11 x i64] zeroinitializer // PGOGEN-EXC: @[[THC:__llvm_pgo_ctr[0-9]*]] = private global [11 x i64] zeroinitializer -- 2.40.0