summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-12 22:08:58 +0000
committerChris Lattner <sabre@nondot.org>2003-05-12 22:08:58 +0000
commit0b43f4ef2950b709311434cb5589e5fcb94a127a (patch)
tree3e9088103b2e4fc1dbe6a6a1cd6887d2a4ddab19 /tools
parent8f6396e80fa60e4ff79ddf7d81381d726405ac45 (diff)
downloadllvm-0b43f4ef2950b709311434cb5589e5fcb94a127a.tar.gz
llvm-0b43f4ef2950b709311434cb5589e5fcb94a127a.tar.bz2
llvm-0b43f4ef2950b709311434cb5589e5fcb94a127a.tar.xz
Move static stuff to an anonymous namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/analyze/analyze.cpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp
index 1119fccfa3..4491a299cf 100644
--- a/tools/analyze/analyze.cpp
+++ b/tools/analyze/analyze.cpp
@@ -85,24 +85,23 @@ struct BasicBlockPassPrinter : public BasicBlockPass {
+namespace {
+ cl::opt<std::string>
+ InputFilename(cl::Positional, cl::desc("<input file>"), cl::init("-"),
+ cl::value_desc("filename"));
-static cl::opt<std::string>
-InputFilename(cl::Positional, cl::desc("<input file>"), cl::init("-"),
- cl::value_desc("filename"));
-
-static cl::opt<bool> 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.
-//
-static cl::list<const PassInfo*, bool,
- FilteredPassNameParser<PassInfo::Analysis> >
-AnalysesList(cl::desc("Analyses available:"));
+ cl::opt<bool> Quiet("q", cl::desc("Don't print analysis pass names"));
+ 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<const PassInfo*, bool, FilteredPassNameParser<PassInfo::Analysis> >
+ 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");