Skip to content

Commit f669453

Browse files
authored
[Driver] Remove non MSVC CL flags /fprofile-sample-use (#117970)
Those flags are introduced in #117282. They are not supported by MSVC.
1 parent c1dff71 commit f669453

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8506,8 +8506,6 @@ def _SLASH_fp_strict : CLFlag<"fp:strict">, HelpText<"">, Alias<ffp_model_EQ>, A
85068506
def _SLASH_fsanitize_EQ_address : CLFlag<"fsanitize=address">,
85078507
HelpText<"Enable AddressSanitizer">,
85088508
Alias<fsanitize_EQ>, AliasArgs<["address"]>;
8509-
def : CLJoined<"fprofile-sample-use:">, Alias<fprofile_sample_use_EQ>;
8510-
def : CLJoined<"fprofile-sample-use=">, Alias<fprofile_sample_use_EQ>;
85118509
def _SLASH_GA : CLFlag<"GA">, Alias<ftlsmodel_EQ>, AliasArgs<["local-exec"]>,
85128510
HelpText<"Assume thread-local variables are defined in the executable">;
85138511
def _SLASH_GR : CLFlag<"GR">, HelpText<"Emit RTTI data (default)">;

clang/test/Driver/cl-options.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@
101101
// CHECK-PROFILE-USE: "-fprofile-instrument-use-path=default.profdata"
102102
// CHECK-PROFILE-USE-FILE: "-fprofile-instrument-use-path=/tmp/somefile.prof"
103103

104-
// RUN: %clang_cl -### /FA -fprofile-sample-use=%S/Inputs/file.prof -- %s 2>&1 | FileCheck --check-prefix=CHECK-PROFILE-SAMPLE-USE %s
105-
// RUN: %clang_cl -### /FA /fprofile-sample-use=%S/Inputs/file.prof -- %s 2>&1 | FileCheck --check-prefix=CHECK-PROFILE-SAMPLE-USE %s
106-
// RUN: %clang_cl -### /FA /fprofile-sample-use:%S/Inputs/file.prof -- %s 2>&1 | FileCheck --check-prefix=CHECK-PROFILE-SAMPLE-USE %s
107-
// CHECK-PROFILE-SAMPLE-USE: "-fprofile-sample-use={{.*}}/file.prof"
108-
109104
// RUN: %clang_cl /GA -### -- %s 2>&1 | FileCheck -check-prefix=GA %s
110105
// GA: -ftls-model=local-exec
111106

@@ -718,6 +713,7 @@
718713
// RUN: -fbracket-depth=123 \
719714
// RUN: -fprofile-generate \
720715
// RUN: -fprofile-generate=dir \
716+
// RUN: -fprofile-sample-use=%S/Inputs/file.prof \
721717
// RUN: -fno-profile-generate \
722718
// RUN: -fno-profile-instr-generate \
723719
// RUN: -fno-profile-instr-use \

0 commit comments

Comments
 (0)