aboutsummaryrefslogtreecommitdiff
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-16 17:34:29 +0000
committerChris Lattner <sabre@nondot.org>2003-04-16 17:34:29 +0000
commitf2956fcc115c2c7c8c354f13fbafee08f99b6c7a (patch)
treec4cd0b2842ed6def7d5c632135539d19c97b27f8 /tools/gccas/gccas.cpp
parentaf76d0ea0bc15e87a32aad9c86808eba34026f20 (diff)
Namespacify command line options
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r--tools/gccas/gccas.cpp29
1 files changed, 16 insertions, 13 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index fb5ed091b4..ea026916ea 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -23,23 +23,26 @@
#include <fstream>
using std::cerr;
-// FIXME: This should eventually be parameterized...
-static TargetData TD("opt target");
+namespace {
+ // FIXME: This should eventually be parameterized...
+ TargetData TD("gccas target");
-static cl::opt<std::string>
-InputFilename(cl::Positional, cl::desc("<input llvm assembly>"), cl::Required);
+ cl::opt<std::string>
+ InputFilename(cl::Positional, cl::desc("<input llvm assembly>"),cl::Required);
-static cl::opt<std::string>
-OutputFilename("o", cl::desc("Override output filename"),
- cl::value_desc("filename"));
+ cl::opt<std::string>
+ OutputFilename("o", cl::desc("Override output filename"),
+ cl::value_desc("filename"));
-static cl::opt<int>
-RunNPasses("stopAfterNPasses",
- cl::desc("Only run the first N passes of gccas"), cl::Hidden,
- cl::value_desc("# passes"));
+ cl::opt<int>
+ RunNPasses("stopAfterNPasses",
+ cl::desc("Only run the first N passes of gccas"), cl::Hidden,
+ cl::value_desc("# passes"));
-static cl::opt<bool>
-Verify("verify", cl::desc("Verify each pass result"));
+ cl::opt<bool>
+ Verify("verify", cl::desc("Verify each pass result"));
+
+}
static inline void addPass(PassManager &PM, Pass *P) {