mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Move static stuff to an anonymous namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8f6396e80f
commit
0b43f4ef29
@ -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>
|
cl::opt<bool> Quiet("q", cl::desc("Don't print analysis pass names"));
|
||||||
InputFilename(cl::Positional, cl::desc("<input file>"), cl::init("-"),
|
cl::alias QuietA("quiet", cl::desc("Alias for -q"),
|
||||||
cl::value_desc("filename"));
|
cl::aliasopt(Quiet));
|
||||||
|
|
||||||
static cl::opt<bool> Quiet("q", cl::desc("Don't print analysis pass names"));
|
// The AnalysesList is automatically populated with registered Passes by the
|
||||||
static cl::alias QuietA("quiet", cl::desc("Alias for -q"),
|
// PassNameParser.
|
||||||
cl::aliasopt(Quiet));
|
//
|
||||||
|
cl::list<const PassInfo*, bool, FilteredPassNameParser<PassInfo::Analysis> >
|
||||||
|
AnalysesList(cl::desc("Analyses available:"));
|
||||||
|
|
||||||
// The AnalysesList is automatically populated with registered Passes by the
|
Timer BytecodeLoadTimer("Bytecode Loader");
|
||||||
// PassNameParser.
|
}
|
||||||
//
|
|
||||||
static cl::list<const PassInfo*, bool,
|
|
||||||
FilteredPassNameParser<PassInfo::Analysis> >
|
|
||||||
AnalysesList(cl::desc("Analyses available:"));
|
|
||||||
|
|
||||||
|
|
||||||
static Timer BytecodeLoadTimer("Bytecode Loader");
|
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
cl::ParseCommandLineOptions(argc, argv, " llvm analysis printer tool\n");
|
cl::ParseCommandLineOptions(argc, argv, " llvm analysis printer tool\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user