This reverts7ad666798fand1876a2914fthat reverted:741978d727[clang][cli] Port CodeGen option flags to new option parsing system383778e217[clang][cli] Port LangOpts option flags to new option parsing systemaec2991d08[clang][cli] Port LangOpts simple string based options to new option parsing system95d3cc67ca[clang][cli] Port CodeGenOpts simple string flags to new option parsing system27b7d64688[clang][cli] Streamline MarshallingInfoFlag description70410a2649[clang][cli] Let denormalizer decide how to render the option based on the option class63a24816f5[clang][cli] Implement `getAllArgValues` marshalling Commit741978d727accidentally changed the `Group` attribute of `g[no_]column_info` options from `g_flags_Group` to `g_Group`, which changed the debug info options passed to cc1 by the driver. Similar change was also present in383778e217, which accidentally added `Group<f_Group>` to `f[no_]const_strings` and `f[no_]signed_wchar`. This patch corrects all three accidental changes by replacing `Bool{G,F}Option` with `BoolCC1Option`.
15 lines
708 B
C
15 lines
708 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 value 'garbage' in '-fprofile-instrument=garbage'
|
|
|
|
int main(void) {
|
|
return 0;
|
|
}
|