]> granicus.if.org Git - llvm/commitdiff
Prefer static namespace-scoped variables over anon namespacing per style guide
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 1 Jun 2017 19:20:26 +0000 (19:20 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 1 Jun 2017 19:20:26 +0000 (19:20 +0000)
Also for consistency with the immediately preceeding variable
definition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304457 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/OptimizerDriver.cpp

index 246580c8bdbe35428a59824c35f793a8cc7dbce4..ae3a31adaea37b077d2f956b89eb992581c0b892 100644 (file)
@@ -47,14 +47,13 @@ static cl::opt<bool> PreserveBitcodeUseListOrder(
     cl::desc("Preserve use-list order when writing LLVM bitcode."),
     cl::init(true), cl::Hidden);
 
-namespace {
 // ChildOutput - This option captures the name of the child output file that
 // is set up by the parent bugpoint process
-cl::opt<std::string> ChildOutput("child-output", cl::ReallyHidden);
-cl::opt<std::string> OptCmd("opt-command", cl::init(""),
-                            cl::desc("Path to opt. (default: search path "
-                                     "for 'opt'.)"));
-}
+static cl::opt<std::string> ChildOutput("child-output", cl::ReallyHidden);
+static cl::opt<std::string>
+    OptCmd("opt-command", cl::init(""),
+           cl::desc("Path to opt. (default: search path "
+                    "for 'opt'.)"));
 
 /// writeProgramToFile - This writes the current "Program" to the named bitcode
 /// file.  If an error occurs, true is returned.