]> granicus.if.org Git - clang/commitdiff
test/CodeGenCXX: Give instr-profile exception tests their own file
authorJustin Bogner <mail@justinbogner.com>
Thu, 23 Jan 2014 02:54:23 +0000 (02:54 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 23 Jan 2014 02:54:23 +0000 (02:54 +0000)
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

test/CodeGenCXX/Inputs/instr-profile-throws.pgodata [moved from test/CodeGenCXX/Inputs/instr-profile.pgodata with 100% similarity]
test/CodeGenCXX/instr-profile-throws.cpp [moved from test/CodeGenCXX/instr-profile.cpp with 93% similarity]

similarity index 93%
rename from test/CodeGenCXX/instr-profile.cpp
rename to test/CodeGenCXX/instr-profile-throws.cpp
index da9f6fb1c5d6a0dd79d7923477a50bdd7a5ab01d..7b870c352b5ffc515bfccef24fdf270e9bd843a0 100644 (file)
@@ -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