]> granicus.if.org Git - clang/commitdiff
[profiling] Tighten test cases which refer to "profn" vars. NFC.
authorVedant Kumar <vsk@apple.com>
Sat, 18 Feb 2017 01:50:14 +0000 (01:50 +0000)
committerVedant Kumar <vsk@apple.com>
Sat, 18 Feb 2017 01:50:14 +0000 (01:50 +0000)
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
test/Profile/cxx-structors.cpp

index 5e5b22e8c30dcd912cfad324ba6a96e61263db0e..1e7a739e04e4add6986020fadb57b8c47deccc2b 100644 (file)
@@ -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) {
index 73562d39c973f1eaafe247ba73e9bb426b1e1db2..d6fc1ad6648b3ea9b8037990b1d3ba381707a591 100644 (file)
@@ -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() {
 }