summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-02-18 01:50:14 +0000
committerVedant Kumar <vsk@apple.com>2017-02-18 01:50:14 +0000
commit56aa5e7a6cd246b622cb7c1847f758c82b0e8afc (patch)
tree5695704e86f5db98343d3e6d6010bba209c69954
parent6b0257108c583b0e3fd1cb480855173990d9ca7c (diff)
[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
-rw-r--r--test/Profile/c-generate.c3
-rw-r--r--test/Profile/cxx-structors.cpp11
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() {
}