From ef92f29b7561cceb6cc84c82af3e0edc52e42a39 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238177 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/TableGen/Main.cpp | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/lib/TableGen/Main.cpp b/lib/TableGen/Main.cpp index c44045152a4..d59cd216e6e 100644 --- a/lib/TableGen/Main.cpp +++ b/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.34.1