mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-07 08:34:59 +00:00
a32c08d304
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
15 lines
718 B
C
15 lines
718 B
C
// Check that the -fprofile-instrument-path= form works.
|
|
// RUN: %clang_cc1 -main-file-name c-generate.c %s -o - -emit-llvm -fprofile-instrument=clang -fprofile-instrument-path=c-generate-test.profraw | FileCheck %s --check-prefix=PROF-INSTR-PATH
|
|
// RUN: %clang_cc1 %s -o - -emit-llvm -fprofile-instrument=none | FileCheck %s --check-prefix=PROF-INSTR-NONE
|
|
// RUN: not %clang_cc1 %s -o - -emit-llvm -fprofile-instrument=garbage 2>&1 | FileCheck %s --check-prefix=PROF-INSTR-GARBAGE
|
|
//
|
|
// PROF-INSTR-PATH: constant [24 x i8] c"c-generate-test.profraw\00"
|
|
//
|
|
// PROF-INSTR-NONE-NOT: __llvm_prf
|
|
//
|
|
// PROF-INSTR-GARBAGE: invalid PGO instrumentor in argument '-fprofile-instrument=garbage'
|
|
|
|
int main(void) {
|
|
return 0;
|
|
}
|