summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/OptimizerDriver.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-06-01 19:20:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-06-01 19:20:26 +0000
commitb762f689b900101a8188cadd8a2240b0657f8374 (patch)
treea16c80cf72503397148588f0a80daacfe083cedf /llvm/tools/bugpoint/OptimizerDriver.cpp
parente16745f4e605eb9a80d8ed7a0486a8f958785999 (diff)
downloadbcm5719-llvm-b762f689b900101a8188cadd8a2240b0657f8374.tar.gz
bcm5719-llvm-b762f689b900101a8188cadd8a2240b0657f8374.zip
Prefer static namespace-scoped variables over anon namespacing per style guide
Also for consistency with the immediately preceeding variable definition. llvm-svn: 304457
Diffstat (limited to 'llvm/tools/bugpoint/OptimizerDriver.cpp')
-rw-r--r--llvm/tools/bugpoint/OptimizerDriver.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/tools/bugpoint/OptimizerDriver.cpp b/llvm/tools/bugpoint/OptimizerDriver.cpp
index 246580c8bdb..ae3a31adaea 100644
--- a/llvm/tools/bugpoint/OptimizerDriver.cpp
+++ b/llvm/tools/bugpoint/OptimizerDriver.cpp
@@ -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.
OpenPOWER on IntegriCloud