forked from OSchip/llvm-project
[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. llvm-svn: 295528
This commit is contained in:
parent
cab432d97d
commit
a32c08d304
|
@ -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) {
|
||||
|
|
|
@ -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() {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue