aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TableGen/Main.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-05-26 06:48:38 +0000
committerCraig Topper <craig.topper@gmail.com>2015-05-26 06:48:38 +0000
commitb7644fd522ccd0a1dc4c68103dd72f9118c06113 (patch)
tree942d7828f2bdfd595324336bc3d052091646ddc2 /llvm/lib/TableGen/Main.cpp
parente62aa7457f60bfb19c598e59e703eb8e1d090194 (diff)
downloadllvm-b7644fd522ccd0a1dc4c68103dd72f9118c06113.zip
llvm-b7644fd522ccd0a1dc4c68103dd72f9118c06113.tar.gz
llvm-b7644fd522ccd0a1dc4c68103dd72f9118c06113.tar.bz2
[TableGen] Use 'static' instead of an anonymous namespace.
llvm-svn: 238177
Diffstat (limited to 'llvm/lib/TableGen/Main.cpp')
-rw-r--r--llvm/lib/TableGen/Main.cpp34
1 files 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 <system_error>
using namespace llvm;
-namespace {
- cl::opt<std::string>
- OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"),
- cl::init("-"));
-
- cl::opt<std::string>
- DependFilename("d",
- cl::desc("Dependency filename"),
- cl::value_desc("filename"),
- cl::init(""));
-
- cl::opt<std::string>
- InputFilename(cl::Positional, cl::desc("<input file>"), cl::init("-"));
-
- cl::list<std::string>
- IncludeDirs("I", cl::desc("Directory of include files"),
- cl::value_desc("directory"), cl::Prefix);
-}
+static cl::opt<std::string>
+OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"),
+ cl::init("-"));
+
+static cl::opt<std::string>
+DependFilename("d",
+ cl::desc("Dependency filename"),
+ cl::value_desc("filename"),
+ cl::init(""));
+
+static cl::opt<std::string>
+InputFilename(cl::Positional, cl::desc("<input file>"), cl::init("-"));
+
+static cl::list<std::string>
+IncludeDirs("I", cl::desc("Directory of include files"),
+ cl::value_desc("directory"), cl::Prefix);
/// \brief Create a dependency file for `-d` option.
///