summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-02-06 17:51:54 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-02-06 17:51:54 +0000
commit970eac40bf0dc46c83ecf202e8e288306faf1fb1 (patch)
tree5d48bfeaf0855f60c742fb9271e13909f332efa4 /llvm/lib/Support/CommandLine.cpp
parent2e404597f488fd730b2cbac319c42045bd559c3e (diff)
downloadbcm5719-llvm-970eac40bf0dc46c83ecf202e8e288306faf1fb1.tar.gz
bcm5719-llvm-970eac40bf0dc46c83ecf202e8e288306faf1fb1.zip
Make helper functions/classes/globals static. NFC.
llvm-svn: 228410
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index c8578cb6513..7d9f3b7930a 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -83,6 +83,8 @@ void StringSaver::anchor() {}
//===----------------------------------------------------------------------===//
+namespace {
+
class CommandLineParser {
public:
// Globals for name and overview of program. Program name is not a string to
@@ -190,6 +192,8 @@ public:
void printOptionValues();
};
+} // namespace
+
static ManagedStatic<CommandLineParser> GlobalParser;
void cl::AddLiteralOption(Option &O, const char *Name) {
OpenPOWER on IntegriCloud