From 0b43f4ef2950b709311434cb5589e5fcb94a127a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 May 2003 22:08:58 +0000 Subject: [PATCH] Move static stuff to an anonymous namespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6154 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/analyze/analyze.cpp | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index 1119fccfa33..4491a299cf6 100644 --- a/tools/analyze/analyze.cpp +++ b/tools/analyze/analyze.cpp @@ -85,24 +85,23 @@ struct BasicBlockPassPrinter : public BasicBlockPass { +namespace { + cl::opt + InputFilename(cl::Positional, cl::desc(""), cl::init("-"), + cl::value_desc("filename")); -static cl::opt -InputFilename(cl::Positional, cl::desc(""), cl::init("-"), - cl::value_desc("filename")); + cl::opt Quiet("q", cl::desc("Don't print analysis pass names")); + cl::alias QuietA("quiet", cl::desc("Alias for -q"), + cl::aliasopt(Quiet)); -static cl::opt Quiet("q", cl::desc("Don't print analysis pass names")); -static cl::alias QuietA("quiet", cl::desc("Alias for -q"), - cl::aliasopt(Quiet)); + // The AnalysesList is automatically populated with registered Passes by the + // PassNameParser. + // + cl::list > + AnalysesList(cl::desc("Analyses available:")); -// The AnalysesList is automatically populated with registered Passes by the -// PassNameParser. -// -static cl::list > -AnalysesList(cl::desc("Analyses available:")); - - -static Timer BytecodeLoadTimer("Bytecode Loader"); + Timer BytecodeLoadTimer("Bytecode Loader"); +} int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, " llvm analysis printer tool\n");