Skip to content

Commit 1f16b6a

Browse files
committed
Make Driver flag experimental.
Created using spr 1.3.6-beta.1
2 parents 0ca9184 + d88d463 commit 1f16b6a

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
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

clang/test/CodeGen/call-graph-section-templates.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Tests that we assign appropriate identifiers to indirect calls and targets
22
// specifically for C++ templates.
33

4-
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fcall-graph-section \
4+
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fexperimental-call-graph-section \
55
// RUN: -emit-llvm -o %t %s
66
// RUN: FileCheck --check-prefix=FT %s < %t
77
// RUN: FileCheck --check-prefix=CST %s < %t

clang/test/CodeGen/call-graph-section-virtual-methods.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Tests that we assign appropriate identifiers to indirect calls and targets
22
// specifically for virtual methods.
33

4-
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fcall-graph-section \
4+
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fexperimental-call-graph-section \
55
// RUN: -emit-llvm -o %t %s
66
// RUN: FileCheck --check-prefix=FT %s < %t
77
// RUN: FileCheck --check-prefix=CST %s < %t

clang/test/CodeGen/call-graph-section.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Tests that we assign appropriate identifiers to indirect calls and targets.
22

3-
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fcall-graph-section \
3+
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fexperimental-call-graph-section \
44
// RUN: -emit-llvm -o - %s | FileCheck --check-prefixes=CHECK,ITANIUM %s
55

6-
// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fcall-graph-section \
6+
// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fexperimental-call-graph-section \
77
// RUN: -emit-llvm -o - %s | FileCheck --check-prefixes=CHECK,MS %s
88

99
// CHECK-DAG: define {{(dso_local)?}} void @foo({{.*}} !type [[F_TVOID:![0-9]+]]

clang/test/CodeGen/call-graph-section.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Tests that we assign appropriate identifiers to indirect calls and targets
22
// specifically for C++ class and instance methods.
33

4-
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fcall-graph-section \
4+
// RUN: %clang_cc1 -triple x86_64-unknown-linux -fexperimental-call-graph-section \
55
// RUN: -emit-llvm -o %t %s
66
// RUN: FileCheck --check-prefix=FT %s < %t
77
// RUN: FileCheck --check-prefix=CST %s < %t
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)