Skip to content

Commit fbb8b9e

Browse files
committed
Options: update profile-sample-use flags for new driver
- Don't use CommaJoined, since profile-sample-use only takes one file - Specify that the flag is only supported by the new swift-driver. for rdar://135443278
1 parent eeb8412 commit fbb8b9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/swift/Option/Options.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ def profile_generate : Flag<["-"], "profile-generate">,
14851485
HelpText<"Generate instrumented code to collect execution counts">;
14861486

14871487
def debug_info_for_profiling : Flag<["-"], "debug-info-for-profiling">,
1488-
Flags<[FrontendOption, NoInteractiveOption]>,
1488+
Flags<[FrontendOption, NoInteractiveOption, NewDriverOnlyOption]>,
14891489
HelpText<"Emit extra debug info (DWARF discriminators) to make sampling-based profiling more accurate">;
14901490

14911491
def profile_use : CommaJoined<["-"], "profile-use=">,
@@ -1497,8 +1497,8 @@ def profile_coverage_mapping : Flag<["-"], "profile-coverage-mapping">,
14971497
Flags<[FrontendOption, NoInteractiveOption]>,
14981498
HelpText<"Generate coverage data for use with profiled execution counts">;
14991499

1500-
def profile_sample_use : CommaJoined<["-"], "profile-sample-use=">,
1501-
Flags<[FrontendOption, NoInteractiveOption, ArgumentIsPath]>,
1500+
def profile_sample_use : Joined<["-"], "profile-sample-use=">,
1501+
Flags<[FrontendOption, NoInteractiveOption, ArgumentIsPath, NewDriverOnlyOption]>,
15021502
MetaVarName<"<profile data>">,
15031503
HelpText<"Supply sampling-based profiling data from llvm-profdata to enable profile-guided optimization">;
15041504

0 commit comments

Comments
 (0)