Skip to content

Commit 71f4c7d

Browse files
authored
[NFC]Make file-local cl::opt global variables static (llvm#126486)
llvm#125983
1 parent 1b043c2 commit 71f4c7d

File tree

52 files changed

+301
-288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+301
-288
lines changed

llvm/examples/Kaleidoscope/MCJIT/cached/toy.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ using namespace llvm;
3131
// Command-line options
3232
//===----------------------------------------------------------------------===//
3333

34-
cl::opt<std::string>
35-
InputIR("input-IR",
36-
cl::desc("Specify the name of an IR file to load for function definitions"),
37-
cl::value_desc("input IR file name"));
38-
39-
cl::opt<bool>
40-
UseObjectCache("use-object-cache",
41-
cl::desc("Enable use of the MCJIT object caching"),
42-
cl::init(false));
34+
static cl::opt<std::string> InputIR(
35+
"input-IR",
36+
cl::desc("Specify the name of an IR file to load for function definitions"),
37+
cl::value_desc("input IR file name"));
38+
39+
static cl::opt<bool>
40+
UseObjectCache("use-object-cache",
41+
cl::desc("Enable use of the MCJIT object caching"),
42+
cl::init(false));
4343

4444
//===----------------------------------------------------------------------===//
4545
// Lexer

llvm/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ using namespace llvm::orc;
2121

2222
ExitOnError ExitOnErr;
2323

24-
cl::opt<bool> DumpJITdObjects("dump-jitted-objects",
25-
cl::desc("dump jitted objects"), cl::Optional,
26-
cl::init(true));
24+
static cl::opt<bool> DumpJITdObjects("dump-jitted-objects",
25+
cl::desc("dump jitted objects"),
26+
cl::Optional, cl::init(true));
2727

28-
cl::opt<std::string> DumpDir("dump-dir",
29-
cl::desc("directory to dump objects to"),
30-
cl::Optional, cl::init(""));
28+
static cl::opt<std::string> DumpDir("dump-dir",
29+
cl::desc("directory to dump objects to"),
30+
cl::Optional, cl::init(""));
3131

32-
cl::opt<std::string> DumpFileStem("dump-file-stem",
33-
cl::desc("Override default dump names"),
34-
cl::Optional, cl::init(""));
32+
static cl::opt<std::string>
33+
DumpFileStem("dump-file-stem", cl::desc("Override default dump names"),
34+
cl::Optional, cl::init(""));
3535

3636
int main(int argc, char *argv[]) {
3737
// Initialize LLVM.

llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ static void reportErrorAndExit() {
117117
exit(1);
118118
}
119119

120-
cl::list<std::string> InputArgv(cl::Positional,
121-
cl::desc("<program arguments>..."));
120+
static cl::list<std::string> InputArgv(cl::Positional,
121+
cl::desc("<program arguments>..."));
122122

123123
int main(int argc, char *argv[]) {
124124
// Initialize LLVM.

llvm/examples/OrcV2Examples/LLJITWithLazyReexports/LLJITWithLazyReexports.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ const llvm::StringRef MainMod =
8686
declare i32 @bar()
8787
)";
8888

89-
cl::list<std::string> InputArgv(cl::Positional,
90-
cl::desc("<program arguments>..."));
89+
static cl::list<std::string> InputArgv(cl::Positional,
90+
cl::desc("<program arguments>..."));
9191

9292
int main(int argc, char *argv[]) {
9393
// Initialize LLVM.

llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/LLJITWithThinLTOSummaries.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ using namespace llvm;
5555
using namespace llvm::orc;
5656

5757
// Path of the module summary index file.
58-
cl::opt<std::string> IndexFile{cl::desc("<module summary index>"),
59-
cl::Positional, cl::init("-")};
58+
static cl::opt<std::string> IndexFile{cl::desc("<module summary index>"),
59+
cl::Positional, cl::init("-")};
6060

6161
// Describe a fail state that is caused by the given ModuleSummaryIndex
6262
// providing multiple definitions of the given global value name. It will dump

llvm/lib/Analysis/AliasAnalysis.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ STATISTIC(NumNoAlias, "Number of NoAlias results");
5858
STATISTIC(NumMayAlias, "Number of MayAlias results");
5959
STATISTIC(NumMustAlias, "Number of MustAlias results");
6060

61-
namespace llvm {
6261
/// Allow disabling BasicAA from the AA results. This is particularly useful
6362
/// when testing to isolate a single AA implementation.
64-
cl::opt<bool> DisableBasicAA("disable-basic-aa", cl::Hidden, cl::init(false));
65-
} // namespace llvm
63+
static cl::opt<bool> DisableBasicAA("disable-basic-aa", cl::Hidden,
64+
cl::init(false));
6665

6766
#ifndef NDEBUG
6867
/// Print a trace of alias analysis queries and their results.

llvm/lib/Analysis/BranchProbabilityInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static cl::opt<bool> PrintBranchProb(
5454
"print-bpi", cl::init(false), cl::Hidden,
5555
cl::desc("Print the branch probability info."));
5656

57-
cl::opt<std::string> PrintBranchProbFuncName(
57+
static cl::opt<std::string> PrintBranchProbFuncName(
5858
"print-bpi-func-name", cl::Hidden,
5959
cl::desc("The option to specify the name of the function "
6060
"whose branch probability info is printed."));

llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ cl::opt<bool> EnableDetailedFunctionProperties(
3030
"enable-detailed-function-properties", cl::Hidden, cl::init(false),
3131
cl::desc("Whether or not to compute detailed function properties."));
3232

33-
cl::opt<unsigned> BigBasicBlockInstructionThreshold(
33+
static cl::opt<unsigned> BigBasicBlockInstructionThreshold(
3434
"big-basic-block-instruction-threshold", cl::Hidden, cl::init(500),
3535
cl::desc("The minimum number of instructions a basic block should contain "
3636
"before being considered big."));
3737

38-
cl::opt<unsigned> MediumBasicBlockInstructionThreshold(
38+
static cl::opt<unsigned> MediumBasicBlockInstructionThreshold(
3939
"medium-basic-block-instruction-threshold", cl::Hidden, cl::init(15),
4040
cl::desc("The minimum number of instructions a basic block should contain "
4141
"before being considered medium-sized."));

llvm/lib/Analysis/IRSimilarityIdentifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ cl::opt<bool>
3636
cl::ReallyHidden,
3737
cl::desc("disable outlining indirect calls."));
3838

39-
cl::opt<bool>
39+
static cl::opt<bool>
4040
MatchCallsByName("ir-sim-calls-by-name", cl::init(false), cl::ReallyHidden,
4141
cl::desc("only allow matching call instructions if the "
4242
"name and type signature match."));

llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ AnalysisKey InlineSizeEstimatorAnalysis::Key;
3636
#include <deque>
3737
#include <optional>
3838

39-
cl::opt<std::string> TFIR2NativeModelPath(
39+
static cl::opt<std::string> TFIR2NativeModelPath(
4040
"ml-inliner-ir2native-model", cl::Hidden,
4141
cl::desc("Path to saved model evaluating native size from IR."));
4242

llvm/lib/Analysis/MemoryProfileInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ cl::opt<bool> MemProfReportHintedSizes(
5454
// This is useful if we have enabled reporting of hinted sizes, and want to get
5555
// information from the indexing step for all contexts (especially for testing),
5656
// or have specified a value less than 100% for -memprof-cloning-cold-threshold.
57-
cl::opt<bool> MemProfKeepAllNotColdContexts(
57+
static cl::opt<bool> MemProfKeepAllNotColdContexts(
5858
"memprof-keep-all-not-cold-contexts", cl::init(false), cl::Hidden,
5959
cl::desc("Keep all non-cold contexts (increases cloning overheads)"));
6060

llvm/lib/CGData/CodeGenData.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
using namespace llvm;
2828
using namespace cgdata;
2929

30-
cl::opt<bool>
30+
static cl::opt<bool>
3131
CodeGenDataGenerate("codegen-data-generate", cl::init(false), cl::Hidden,
3232
cl::desc("Emit CodeGen Data into custom sections"));
33-
cl::opt<std::string>
33+
static cl::opt<std::string>
3434
CodeGenDataUsePath("codegen-data-use-path", cl::init(""), cl::Hidden,
3535
cl::desc("File path to where .cgdata file is read"));
3636
cl::opt<bool> CodeGenDataThinLTOTwoRounds(

llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
using namespace llvm;
4545

4646
/// Query value using AddLinkageNamesToDeclCallOriginsForTuning.
47-
cl::opt<cl::boolOrDefault> AddLinkageNamesToDeclCallOrigins(
47+
static cl::opt<cl::boolOrDefault> AddLinkageNamesToDeclCallOrigins(
4848
"add-linkage-names-to-declaration-call-origins", cl::Hidden,
4949
cl::desc("Add DW_AT_linkage_name to function declaration DIEs "
5050
"referenced by DW_AT_call_origin attributes. Enabled by default "

llvm/lib/CodeGen/MachinePipeliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ cl::opt<int> SwpForceIssueWidth(
209209
cl::init(-1));
210210

211211
/// A command line argument to set the window scheduling option.
212-
cl::opt<WindowSchedulingFlag> WindowSchedulingOption(
212+
static cl::opt<WindowSchedulingFlag> WindowSchedulingOption(
213213
"window-sched", cl::Hidden, cl::init(WindowSchedulingFlag::WS_On),
214214
cl::desc("Set how to use window scheduling algorithm."),
215215
cl::values(clEnumValN(WindowSchedulingFlag::WS_Off, "off",

llvm/lib/CodeGen/MachineScheduler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ cl::opt<MISched::Direction> PreRADirection(
9090
clEnumValN(MISched::Bidirectional, "bidirectional",
9191
"Force bidirectional pre reg-alloc list scheduling")));
9292

93-
cl::opt<MISched::Direction> PostRADirection(
93+
static cl::opt<MISched::Direction> PostRADirection(
9494
"misched-postra-direction", cl::Hidden,
9595
cl::desc("Post reg-alloc list scheduling direction"),
9696
cl::init(MISched::Unspecified),
@@ -102,9 +102,9 @@ cl::opt<MISched::Direction> PostRADirection(
102102
clEnumValN(MISched::Bidirectional, "bidirectional",
103103
"Force bidirectional post reg-alloc list scheduling")));
104104

105-
cl::opt<bool>
106-
DumpCriticalPathLength("misched-dcpl", cl::Hidden,
107-
cl::desc("Print critical path length to stdout"));
105+
static cl::opt<bool>
106+
DumpCriticalPathLength("misched-dcpl", cl::Hidden,
107+
cl::desc("Print critical path length to stdout"));
108108

109109
cl::opt<bool> VerifyScheduling(
110110
"verify-misched", cl::Hidden,

llvm/lib/CodeGen/WindowScheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ cl::opt<unsigned> WindowDiffLimit(
9696

9797
// WindowIILimit serves as an indicator of abnormal scheduling results and could
9898
// potentially be referenced by the derived target window scheduler.
99-
cl::opt<unsigned>
99+
static cl::opt<unsigned>
100100
WindowIILimit("window-ii-limit",
101101
cl::desc("The upper limit of II in the window algorithm."),
102102
cl::Hidden, cl::init(1000));

llvm/lib/LTO/LTOCodeGenerator.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,20 @@ cl::opt<std::string> RemarksFormat(
109109
cl::desc("The format used for serializing remarks (default: YAML)"),
110110
cl::value_desc("format"), cl::init("yaml"));
111111

112-
cl::opt<std::string> LTOStatsFile(
113-
"lto-stats-file",
114-
cl::desc("Save statistics to the specified file"),
115-
cl::Hidden);
112+
static cl::opt<std::string>
113+
LTOStatsFile("lto-stats-file",
114+
cl::desc("Save statistics to the specified file"), cl::Hidden);
116115

117-
cl::opt<std::string> AIXSystemAssemblerPath(
116+
static cl::opt<std::string> AIXSystemAssemblerPath(
118117
"lto-aix-system-assembler",
119118
cl::desc("Path to a system assembler, picked up on AIX only"),
120119
cl::value_desc("path"));
121120

122-
cl::opt<bool>
121+
static cl::opt<bool>
123122
LTORunCSIRInstr("cs-profile-generate",
124123
cl::desc("Perform context sensitive PGO instrumentation"));
125124

126-
cl::opt<std::string>
125+
static cl::opt<std::string>
127126
LTOCSIRProfile("cs-profile-path",
128127
cl::desc("Context sensitive profile file path"));
129128
} // namespace llvm

llvm/lib/Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ using namespace llvm;
3232
#define AARCH64_LOWER_HOMOGENEOUS_PROLOG_EPILOG_NAME \
3333
"AArch64 homogeneous prolog/epilog lowering pass"
3434

35-
cl::opt<int> FrameHelperSizeThreshold(
35+
static cl::opt<int> FrameHelperSizeThreshold(
3636
"frame-helper-size-threshold", cl::init(2), cl::Hidden,
3737
cl::desc("The minimum number of instructions that are outlined in a frame "
3838
"helper (default = 2)"));

llvm/lib/Target/AArch64/AArch64StackTaggingPreRA.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ using namespace llvm;
3131

3232
enum UncheckedLdStMode { UncheckedNever, UncheckedSafe, UncheckedAlways };
3333

34-
cl::opt<UncheckedLdStMode> ClUncheckedLdSt(
35-
"stack-tagging-unchecked-ld-st", cl::Hidden,
36-
cl::init(UncheckedSafe),
34+
static cl::opt<UncheckedLdStMode> ClUncheckedLdSt(
35+
"stack-tagging-unchecked-ld-st", cl::Hidden, cl::init(UncheckedSafe),
3736
cl::desc(
3837
"Unconditionally apply unchecked-ld-st optimization (even for large "
3938
"stack frames, or in the presence of variable sized allocas)."),

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class TailFoldingOption {
185185

186186
TailFoldingOption TailFoldingOptionLoc;
187187

188-
cl::opt<TailFoldingOption, true, cl::parser<std::string>> SVETailFolding(
188+
static cl::opt<TailFoldingOption, true, cl::parser<std::string>> SVETailFolding(
189189
"sve-tail-folding",
190190
cl::desc(
191191
"Control the use of vectorisation using tail-folding for SVE where the"

llvm/lib/Target/ARM/ARMSelectionDAGInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ using namespace llvm;
1717

1818
#define DEBUG_TYPE "arm-selectiondag-info"
1919

20-
cl::opt<TPLoop::MemTransfer> EnableMemtransferTPLoop(
20+
static cl::opt<TPLoop::MemTransfer> EnableMemtransferTPLoop(
2121
"arm-memtransfer-tploop", cl::Hidden,
2222
cl::desc("Control conversion of memcpy to "
2323
"Tail predicated loops (WLSTP)"),

llvm/lib/Target/ARM/MVELaneInterleavingPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ using namespace llvm;
7070

7171
#define DEBUG_TYPE "mve-laneinterleave"
7272

73-
cl::opt<bool> EnableInterleave(
73+
static cl::opt<bool> EnableInterleave(
7474
"enable-mve-interleave", cl::Hidden, cl::init(true),
7575
cl::desc("Enable interleave MVE vector operation lowering"));
7676

llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ cl::opt<bool> MV79("mv79", cl::Hidden, cl::desc("Build for Hexagon V79"),
9797
cl::init(false));
9898
} // namespace
9999

100-
cl::opt<Hexagon::ArchEnum> EnableHVX(
100+
static cl::opt<Hexagon::ArchEnum> EnableHVX(
101101
"mhvx", cl::desc("Enable Hexagon Vector eXtensions"),
102102
cl::values(clEnumValN(Hexagon::ArchEnum::V60, "v60", "Build for HVX v60"),
103103
clEnumValN(Hexagon::ArchEnum::V62, "v62", "Build for HVX v62"),

llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using namespace llvm;
3434

3535
// This disables the removal of registers when lowering into MC, as required
3636
// by some current tests.
37-
cl::opt<bool>
37+
static cl::opt<bool>
3838
WasmKeepRegisters("wasm-keep-registers", cl::Hidden,
3939
cl::desc("WebAssembly: output stack registers in"
4040
" instruction output for test purposes only."),

llvm/lib/Transforms/IPO/ElimAvailExtern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ using namespace llvm;
3030

3131
#define DEBUG_TYPE "elim-avail-extern"
3232

33-
cl::opt<bool> ConvertToLocal(
33+
static cl::opt<bool> ConvertToLocal(
3434
"avail-extern-to-local", cl::Hidden,
3535
cl::desc("Convert available_externally into locals, renaming them "
3636
"to avoid link-time clashes."));

llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ cl::opt<bool> SupportsHotColdNew(
180180
"supports-hot-cold-new", cl::init(false), cl::Hidden,
181181
cl::desc("Linking with hot/cold operator new interfaces"));
182182

183-
cl::opt<bool> MemProfRequireDefinitionForPromotion(
183+
static cl::opt<bool> MemProfRequireDefinitionForPromotion(
184184
"memprof-require-definition-for-promotion", cl::init(false), cl::Hidden,
185185
cl::desc(
186186
"Require target function definition when promoting indirect calls"));

llvm/lib/Transforms/IPO/ModuleInliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ using namespace llvm;
4949
STATISTIC(NumInlined, "Number of functions inlined");
5050
STATISTIC(NumDeleted, "Number of functions deleted because all callers found");
5151

52-
cl::opt<bool> CtxProfPromoteAlwaysInline(
52+
static cl::opt<bool> CtxProfPromoteAlwaysInline(
5353
"ctx-prof-promote-alwaysinline", cl::init(false), cl::Hidden,
5454
cl::desc("If using a contextual profile in this module, and an indirect "
5555
"call target is marked as alwaysinline, perform indirect call "

llvm/lib/Transforms/Scalar/LICM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static cl::opt<unsigned> FPAssociationUpperLimit(
140140
"Set upper limit for the number of transformations performed "
141141
"during a single round of hoisting the reassociated expressions."));
142142

143-
cl::opt<unsigned> IntAssociationUpperLimit(
143+
static cl::opt<unsigned> IntAssociationUpperLimit(
144144
"licm-max-num-int-reassociations", cl::init(5U), cl::Hidden,
145145
cl::desc(
146146
"Set upper limit for the number of transformations performed "

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,10 @@ AllowStridedPointerIVs("lv-strided-pointer-ivs", cl::init(false), cl::Hidden,
4343
cl::desc("Enable recognition of non-constant strided "
4444
"pointer induction variables."));
4545

46-
namespace llvm {
47-
cl::opt<bool>
46+
static cl::opt<bool>
4847
HintsAllowReordering("hints-allow-reordering", cl::init(true), cl::Hidden,
4948
cl::desc("Allow enabling loop hints to reorder "
5049
"FP operations during vectorization."));
51-
} // namespace llvm
5250

5351
// TODO: Move size-based thresholds out of legality checking, make cost based
5452
// decisions instead of hard thresholds.

llvm/lib/Transforms/Vectorize/SandboxVectorizer/SeedCollector.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
using namespace llvm;
1818
namespace llvm::sandboxir {
1919

20-
cl::opt<unsigned> SeedBundleSizeLimit(
20+
static cl::opt<unsigned> SeedBundleSizeLimit(
2121
"sbvec-seed-bundle-size-limit", cl::init(32), cl::Hidden,
2222
cl::desc("Limit the size of the seed bundle to cap compilation time."));
2323
#define LoadSeedsDef "loads"
2424
#define StoreSeedsDef "stores"
25-
cl::opt<std::string> CollectSeeds(
25+
static cl::opt<std::string> CollectSeeds(
2626
"sbvec-collect-seeds", cl::init(LoadSeedsDef "," StoreSeedsDef), cl::Hidden,
2727
cl::desc("Collect these seeds. Use empty for none or a comma-separated "
2828
"list of '" LoadSeedsDef "' and '" StoreSeedsDef "'."));
29-
cl::opt<unsigned> SeedGroupsLimit(
29+
static cl::opt<unsigned> SeedGroupsLimit(
3030
"sbvec-seed-groups-limit", cl::init(256), cl::Hidden,
3131
cl::desc("Limit the number of collected seeds groups in a BB to "
3232
"cap compilation time."));

llvm/tools/bugpoint/ExecutionDriver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ cl::opt<std::string>
8282
InputFile("input", cl::init("/dev/null"),
8383
cl::desc("Filename to pipe in as stdin (default: /dev/null)"));
8484

85-
cl::list<std::string>
85+
static cl::list<std::string>
8686
AdditionalSOs("additional-so", cl::desc("Additional shared objects to load "
8787
"into executing programs"));
8888

89-
cl::list<std::string> AdditionalLinkerArgs(
89+
static cl::list<std::string> AdditionalLinkerArgs(
9090
"Xlinker", cl::desc("Additional arguments to pass to the linker"));
9191

9292
cl::opt<std::string> CustomCompileCommand(

llvm/tools/bugpoint/OptimizerDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void BugDriver::EmitProgressBitcode(const Module &M, const std::string &ID,
111111
outs() << " " << getPassesString(PassesToRun) << "\n";
112112
}
113113

114-
cl::opt<bool> SilencePasses(
114+
static cl::opt<bool> SilencePasses(
115115
"silence-passes",
116116
cl::desc("Suppress output of running passes (both stdout and stderr)"));
117117

0 commit comments

Comments
 (0)