Skip to content

Commit 1fae62f

Browse files
committed
Rename the flag to dump-minimization-hints to make it more specific.
1 parent 72c51cc commit 1fae62f

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7968,10 +7968,10 @@ def print_dependency_directives_minimized_source : Flag<["-"],
79687968
"print-dependency-directives-minimized-source">,
79697969
HelpText<"Print the output of the dependency directives source minimizer">;
79707970
}
7971-
def dump_deserialized_declaration_ranges : Joined<["-"],
7972-
"dump-deserialized-declaration-ranges=">,
7973-
HelpText<"Dump ranges of deserialized declarations to aid debugging and minimization">,
7974-
MarshallingInfoString<FrontendOpts<"DumpDeserializedDeclarationRangesPath">>;
7971+
def dump_minimization_hints : Joined<["-"],
7972+
"dump-minimization-hints=">,
7973+
HelpText<"Dump ranges of deserialized declarations to use as bug minimization hints">,
7974+
MarshallingInfoString<FrontendOpts<"DumpMinimizationHintsPath">>;
79757975

79767976
defm emit_llvm_uselists : BoolOption<"", "emit-llvm-uselists",
79777977
CodeGenOpts<"EmitLLVMUseLists">, DefaultFalse,

clang/include/clang/Frontend/FrontendOptions.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,9 @@ class FrontendOptions {
530530
/// Output Path for module output file.
531531
std::string ModuleOutputPath;
532532

533-
/// Output path to dump ranges of deserialized declarations.
534-
std::string DumpDeserializedDeclarationRangesPath;
533+
/// Output path to dump ranges of deserialized declarations to use as
534+
/// minimization hints.
535+
std::string DumpMinimizationHintsPath;
535536

536537
public:
537538
FrontendOptions()

clang/lib/Frontend/FrontendAction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ FrontendAction::CreateWrappedASTConsumer(CompilerInstance &CI,
307307

308308
std::vector<std::unique_ptr<ASTConsumer>> Consumers;
309309
llvm::StringRef DumpDeserializedDeclarationRangesPath =
310-
CI.getFrontendOpts().DumpDeserializedDeclarationRangesPath;
310+
CI.getFrontendOpts().DumpMinimizationHintsPath;
311311
if (!DumpDeserializedDeclarationRangesPath.empty()) {
312312
std::error_code ErrorCode;
313313
auto FileStream = std::make_unique<llvm::raw_fd_ostream>(

0 commit comments

Comments
 (0)