Skip to content

Commit e4684b8

Browse files
necipfazilPrabhuk
authored andcommitted
Break clang and llvm parts into separate commits.
Created using spr 1.3.6-beta.1
2 parents e51ce07 + 21ec0f7 commit e4684b8

File tree

9 files changed

+1
-280
lines changed

9 files changed

+1
-280
lines changed

clang/docs/CallGraphSection.rst

Lines changed: 0 additions & 251 deletions
This file was deleted.

clang/include/clang/Basic/CodeGenOptions.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ CODEGENOPT(EnableNoundefAttrs, 1, 0) ///< Enable emitting `noundef` attributes o
7878
CODEGENOPT(DebugPassManager, 1, 0) ///< Prints debug information for the new
7979
///< pass manager.
8080
CODEGENOPT(DisableRedZone , 1, 0) ///< Set when -mno-red-zone is enabled.
81-
CODEGENOPT(CallGraphSection, 1, 0) ///< Emit a call graph section into the
82-
///< object file.
8381
CODEGENOPT(EmitCallSiteInfo, 1, 0) ///< Emit call site info only in the case of
8482
///< '-g' + 'O>0' level.
8583
CODEGENOPT(IndirectTlsSegRefs, 1, 0) ///< Set when -mno-tls-direct-seg-refs

clang/include/clang/Driver/Options.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4291,10 +4291,6 @@ defm data_sections : BoolFOption<"data-sections",
42914291
PosFlag<SetTrue, [], [ClangOption, CC1Option],
42924292
"Place each data in its own section">,
42934293
NegFlag<SetFalse>>;
4294-
defm call_graph_section : BoolFOption<"call-graph-section",
4295-
CodeGenOpts<"CallGraphSection">, DefaultFalse,
4296-
PosFlag<SetTrue, [], [CC1Option], "Emit a call graph section">,
4297-
NegFlag<SetFalse>>;
42984294
defm stack_size_section : BoolFOption<"stack-size-section",
42994295
CodeGenOpts<"StackSizeSection">, DefaultFalse,
43004296
PosFlag<SetTrue, [], [ClangOption, CC1Option],

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ static bool initTargetOptions(DiagnosticsEngine &Diags,
455455
Options.StackUsageOutput = CodeGenOpts.StackUsageOutput;
456456
Options.EmitAddrsig = CodeGenOpts.Addrsig;
457457
Options.ForceDwarfFrameSection = CodeGenOpts.ForceDwarfFrameSection;
458-
Options.EmitCallGraphSection = CodeGenOpts.CallGraphSection;
459458
Options.EmitCallSiteInfo = CodeGenOpts.EmitCallSiteInfo;
460459
Options.EnableAIXExtendedAltivecABI = LangOpts.EnableAIXExtendedAltivecABI;
461460
Options.XRayFunctionIndex = CodeGenOpts.XRayFunctionIndex;

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6609,10 +6609,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
66096609
CmdArgs.push_back(A->getValue());
66106610
}
66116611

6612-
if (Args.hasFlag(options::OPT_fcall_graph_section,
6613-
options::OPT_fno_call_graph_section, false))
6614-
CmdArgs.push_back("-fcall-graph-section");
6615-
66166612
Args.addOptInFlag(CmdArgs, options::OPT_fstack_size_section,
66176613
options::OPT_fno_stack_size_section);
66186614

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

Lines changed: 0 additions & 5 deletions
This file was deleted.

llvm/include/llvm/CodeGen/CommandFlags.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ bool getEnableStackSizeSection();
132132

133133
bool getEnableAddrsig();
134134

135-
bool getEnableCallGraphSection();
136-
137135
bool getEmitCallSiteInfo();
138136

139137
bool getEnableMachineFunctionSplitter();

llvm/include/llvm/Target/TargetOptions.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ namespace llvm {
146146
EmulatedTLS(false), EnableTLSDESC(false), EnableIPRA(false),
147147
EmitStackSizeSection(false), EnableMachineOutliner(false),
148148
EnableMachineFunctionSplitter(false), SupportsDefaultOutlining(false),
149-
EmitAddrsig(false), BBAddrMap(false), EmitCallGraphSection(false), EmitCallSiteInfo(false),
149+
EmitAddrsig(false), BBAddrMap(false), EmitCallSiteInfo(false),
150150
SupportsDebugEntryValues(false), EnableDebugEntryValues(false),
151151
ValueTrackingVariableLocations(false), ForceDwarfFrameSection(false),
152152
XRayFunctionIndex(true), DebugStrictDwarf(false), Hotpatch(false),
@@ -329,9 +329,6 @@ namespace llvm {
329329
/// to selectively generate basic block sections.
330330
std::shared_ptr<MemoryBuffer> BBSectionsFuncListBuf;
331331

332-
/// Emit section containing call graph metadata.
333-
unsigned EmitCallGraphSection : 1;
334-
335332
/// The flag enables call site info production. It is used only for debug
336333
/// info, and it is restricted only to optimized code. This can be used for
337334
/// something else, so that should be controlled in the frontend.

llvm/lib/CodeGen/CommandFlags.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ CGOPT(EABI, EABIVersion)
101101
CGOPT(DebuggerKind, DebuggerTuningOpt)
102102
CGOPT(bool, EnableStackSizeSection)
103103
CGOPT(bool, EnableAddrsig)
104-
CGOPT(bool, EnableCallGraphSection)
105104
CGOPT(bool, EmitCallSiteInfo)
106105
CGOPT(bool, EnableMachineFunctionSplitter)
107106
CGOPT(bool, EnableDebugEntryValues)
@@ -461,11 +460,6 @@ codegen::RegisterCodeGenFlags::RegisterCodeGenFlags() {
461460
cl::init(false));
462461
CGBINDOPT(EnableAddrsig);
463462

464-
static cl::opt<bool> EnableCallGraphSection(
465-
"call-graph-section", cl::desc("Emit a call graph section"),
466-
cl::init(false));
467-
CGBINDOPT(EnableCallGraphSection);
468-
469463
static cl::opt<bool> EmitCallSiteInfo(
470464
"emit-call-site-info",
471465
cl::desc(
@@ -593,7 +587,6 @@ codegen::InitTargetOptionsFromCodeGenFlags(const Triple &TheTriple) {
593587
Options.EmitStackSizeSection = getEnableStackSizeSection();
594588
Options.EnableMachineFunctionSplitter = getEnableMachineFunctionSplitter();
595589
Options.EmitAddrsig = getEnableAddrsig();
596-
Options.EmitCallGraphSection = getEnableCallGraphSection();
597590
Options.EmitCallSiteInfo = getEmitCallSiteInfo();
598591
Options.EnableDebugEntryValues = getEnableDebugEntryValues();
599592
Options.ForceDwarfFrameSection = getForceDwarfFrameSection();

0 commit comments

Comments
 (0)