[llvm] [NFC]Make file-local cl::opt global variables static (PR #126486)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 19 19:49:46 PST 2025
================
@@ -438,18 +440,19 @@ cl::opt<bool> SplitChunks(
cl::desc(
"When dumping debug chunks, show a different section for each chunk"),
cl::sub(BytesSubcommand), cl::cat(ModuleCategory));
-cl::list<std::string> InputFilenames(cl::Positional,
- cl::desc("<input PDB files>"),
- cl::OneOrMore, cl::sub(BytesSubcommand));
+static cl::list<std::string> InputFilenames(cl::Positional,
+ cl::desc("<input PDB files>"),
+ cl::OneOrMore,
+ cl::sub(BytesSubcommand));
} // namespace bytes
namespace dump {
-cl::OptionCategory MsfOptions("MSF Container Options");
-cl::OptionCategory TypeOptions("Type Record Options");
-cl::OptionCategory SymbolOptions("Symbol Options");
-cl::OptionCategory MiscOptions("Miscellaneous Options");
+static cl::OptionCategory MsfOptions("MSF Container Options");
----------------
arsenm wrote:
ditto
https://github.com/llvm/llvm-project/pull/126486
More information about the llvm-commits
mailing list