From: Chris Lattner Date: Wed, 16 Apr 2003 17:34:29 +0000 (+0000) Subject: Namespacify command line options X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f2956fcc115c2c7c8c354f13fbafee08f99b6c7a;p=oota-llvm.git Namespacify command line options git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5778 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index fb5ed091b46..ea026916eab 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -23,23 +23,26 @@ #include 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 -InputFilename(cl::Positional, cl::desc(""), cl::Required); + cl::opt + InputFilename(cl::Positional, cl::desc(""),cl::Required); -static cl::opt -OutputFilename("o", cl::desc("Override output filename"), - cl::value_desc("filename")); + cl::opt + OutputFilename("o", cl::desc("Override output filename"), + cl::value_desc("filename")); -static cl::opt -RunNPasses("stopAfterNPasses", - cl::desc("Only run the first N passes of gccas"), cl::Hidden, - cl::value_desc("# passes")); + cl::opt + RunNPasses("stopAfterNPasses", + cl::desc("Only run the first N passes of gccas"), cl::Hidden, + cl::value_desc("# passes")); -static cl::opt -Verify("verify", cl::desc("Verify each pass result")); + cl::opt + Verify("verify", cl::desc("Verify each pass result")); + +} static inline void addPass(PassManager &PM, Pass *P) {