Skip to content

Commit d349feb

Browse files
committed
Make Driver flag experimental.
Created using spr 1.3.6-beta.1
1 parent f4d6c96 commit d349feb

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4440,9 +4440,9 @@ defm data_sections : BoolFOption<"data-sections",
44404440
PosFlag<SetTrue, [], [ClangOption, CC1Option],
44414441
"Place each data in its own section">,
44424442
NegFlag<SetFalse>>;
4443-
defm call_graph_section
4444-
: BoolFOption<"call-graph-section", CodeGenOpts<"CallGraphSection">,
4445-
DefaultFalse,
4443+
defm experimental_call_graph_section
4444+
: BoolFOption<"experimental-call-graph-section",
4445+
CodeGenOpts<"CallGraphSection">, DefaultFalse,
44464446
PosFlag<SetTrue, [], [ClangOption, CC1Option],
44474447
"Emit a call graph section">,
44484448
NegFlag<SetFalse>>;

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6478,9 +6478,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
64786478
CmdArgs.push_back(A->getValue());
64796479
}
64806480

6481-
if (Args.hasFlag(options::OPT_fcall_graph_section,
6482-
options::OPT_fno_call_graph_section, false))
6483-
CmdArgs.push_back("-fcall-graph-section");
6481+
if (Args.hasFlag(options::OPT_fexperimental_call_graph_section,
6482+
options::OPT_fno_experimental_call_graph_section, false))
6483+
CmdArgs.push_back("-fexperimental-call-graph-section");
64846484

64856485
Args.addOptInFlag(CmdArgs, options::OPT_fstack_size_section,
64866486
options::OPT_fno_stack_size_section);

clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,8 +1269,8 @@ void tools::addLTOOptions(const ToolChain &ToolChain, const ArgList &Args,
12691269
CmdArgs.push_back(
12701270
Args.MakeArgString(Twine(PluginOptPrefix) + "-stack-size-section"));
12711271

1272-
if (Args.hasFlag(options::OPT_fcall_graph_section,
1273-
options::OPT_fno_call_graph_section, false))
1272+
if (Args.hasFlag(options::OPT_fexperimental_call_graph_section,
1273+
options::OPT_fno_experimental_call_graph_section, false))
12741274
CmdArgs.push_back(
12751275
Args.MakeArgString(Twine(PluginOptPrefix) + "-call-graph-section"));
12761276

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clang -### -fcall-graph-section %s 2>&1 | FileCheck --check-prefix=CALL-GRAPH-SECTION %s
2-
// RUN: %clang -### -fcall-graph-section -fno-call-graph-section %s 2>&1 | FileCheck --check-prefix=NO-CALL-GRAPH-SECTION %s
1+
// RUN: %clang -### -fexperimental-call-graph-section %s 2>&1 | FileCheck --check-prefix=CALL-GRAPH-SECTION %s
2+
// RUN: %clang -### -fexperimental-call-graph-section -fno-experimental-call-graph-section %s 2>&1 | FileCheck --check-prefix=NO-CALL-GRAPH-SECTION %s
33

4-
// CALL-GRAPH-SECTION: "-fcall-graph-section"
5-
// NO-CALL-GRAPH-SECTION-NOT: "-fcall-graph-section"
4+
// CALL-GRAPH-SECTION: "-fexperimental-call-graph-section"
5+
// NO-CALL-GRAPH-SECTION-NOT: "-fexperimental-call-graph-section"

0 commit comments

Comments
 (0)