[llvm] r238177 - [TableGen] Use 'static' instead of an anonymous namespace.
Craig Topper
craig.topper at gmail.com
Mon May 25 23:48:39 PDT 2015
Author: ctopper
Date: Tue May 26 01:48:38 2015
New Revision: 238177
URL: http://llvm.org/viewvc/llvm-project?rev=238177&view=rev
Log:
[TableGen] Use 'static' instead of an anonymous namespace.
Modified:
llvm/trunk/lib/TableGen/Main.cpp
Modified: llvm/trunk/lib/TableGen/Main.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Main.cpp?rev=238177&r1=238176&r2=238177&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Main.cpp (original)
+++ llvm/trunk/lib/TableGen/Main.cpp Tue May 26 01:48:38 2015
@@ -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("-"));
+static 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(""));
+static 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("-"));
+static 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::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.
///
More information about the llvm-commits
mailing list