From b7644fd522ccd0a1dc4c68103dd72f9118c06113 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 26 May 2015 06:48:38 +0000 Subject: [PATCH] [TableGen] Use 'static' instead of an anonymous namespace. llvm-svn: 238177 --- llvm/lib/TableGen/Main.cpp | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/llvm/lib/TableGen/Main.cpp b/llvm/lib/TableGen/Main.cpp index c440451..d59cd21 100644 --- a/llvm/lib/TableGen/Main.cpp +++ b/llvm/lib/TableGen/Main.cpp @@ -28,24 +28,22 @@ #include using namespace llvm; -namespace { - cl::opt - OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), - cl::init("-")); - - cl::opt - DependFilename("d", - cl::desc("Dependency filename"), - cl::value_desc("filename"), - cl::init("")); - - cl::opt - InputFilename(cl::Positional, cl::desc(""), cl::init("-")); - - cl::list - IncludeDirs("I", cl::desc("Directory of include files"), - cl::value_desc("directory"), cl::Prefix); -} +static cl::opt +OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"), + cl::init("-")); + +static cl::opt +DependFilename("d", + cl::desc("Dependency filename"), + cl::value_desc("filename"), + cl::init("")); + +static cl::opt +InputFilename(cl::Positional, cl::desc(""), cl::init("-")); + +static cl::list +IncludeDirs("I", cl::desc("Directory of include files"), + cl::value_desc("directory"), cl::Prefix); /// \brief Create a dependency file for `-d` option. /// -- 2.7.4