From 56aa5e7a6cd246b622cb7c1847f758c82b0e8afc Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Sat, 18 Feb 2017 01:50:14 +0000 Subject: [PATCH] [profiling] Tighten test cases which refer to "profn" vars. NFC. The frontend can't see "__profn" profile name variables after IRGen because llvm throws these away now. Tighten up some test cases which checked for the non-existence of those variables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295528 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Profile/c-generate.c | 3 ++- test/Profile/cxx-structors.cpp | 11 +++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/Profile/c-generate.c b/test/Profile/c-generate.c index 5e5b22e8c3..1e7a739e04 100644 --- a/test/Profile/c-generate.c +++ b/test/Profile/c-generate.c @@ -5,7 +5,8 @@ // // PROF-INSTR-PATH: constant [24 x i8] c"c-generate-test.profraw\00" // -// PROF-INSTR-NONE-NOT: @__profn_main +// PROF-INSTR-NONE-NOT: __llvm_prf +// // PROF-INSTR-GARBAGE: invalid PGO instrumentor in argument '-fprofile-instrument=garbage' int main(void) { diff --git a/test/Profile/cxx-structors.cpp b/test/Profile/cxx-structors.cpp index 73562d39c9..d6fc1ad664 100644 --- a/test/Profile/cxx-structors.cpp +++ b/test/Profile/cxx-structors.cpp @@ -20,13 +20,12 @@ Bar bar; // Profile data for complete constructors and destructors must absent. -// CHECK-NOT: @__profn__ZN3FooC1Ev -// CHECK-NOT: @__profn__ZN3FooC1Ei -// CHECK-NOT: @__profn__ZN3FooD1Ev -// CHECK-NOT: @__profn__ZN3BarC1Ev -// CHECK-NOT: @__profn__ZN3BarD1Ev +// CHECK-NOT: @__profc__ZN3FooC1Ev +// CHECK-NOT: @__profc__ZN3FooC1Ei +// CHECK-NOT: @__profc__ZN3FooD1Ev +// CHECK-NOT: @__profc__ZN3BarC1Ev +// CHECK-NOT: @__profc__ZN3BarD1Ev // CHECK-NOT: @__profc__ZN3FooD1Ev -// CHECK-NOT: @__profd__ZN3FooD1Ev int main() { } -- 2.50.1