Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 4fadb11

Browse files
committed
Prefer static namespace-scoped variables over anon namespacing per style guide
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
1 parent 0b6e684 commit 4fadb11

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tools/bugpoint/OptimizerDriver.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@ static cl::opt<bool> PreserveBitcodeUseListOrder(
4747
cl::desc("Preserve use-list order when writing LLVM bitcode."),
4848
cl::init(true), cl::Hidden);
4949

50-
namespace {
5150
// ChildOutput - This option captures the name of the child output file that
5251
// is set up by the parent bugpoint process
53-
cl::opt<std::string> ChildOutput("child-output", cl::ReallyHidden);
54-
cl::opt<std::string> OptCmd("opt-command", cl::init(""),
55-
cl::desc("Path to opt. (default: search path "
56-
"for 'opt'.)"));
57-
}
52+
static cl::opt<std::string> ChildOutput("child-output", cl::ReallyHidden);
53+
static cl::opt<std::string>
54+
OptCmd("opt-command", cl::init(""),
55+
cl::desc("Path to opt. (default: search path "
56+
"for 'opt'.)"));
5857

5958
/// writeProgramToFile - This writes the current "Program" to the named bitcode
6059
/// file. If an error occurs, true is returned.

0 commit comments

Comments
 (0)