From 736c14962e0a3c8806582774eab15e1310890a21 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Fri, 13 Feb 2015 22:54:27 +0000 Subject: [PATCH] NFC. More code cleanup making LookupOption a member of the CommandLineParser. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229170 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/CommandLine.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 7d9f3b7930a..9a1e8831064 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -190,6 +190,9 @@ public: } void printOptionValues(); + +private: + Option *LookupOption(StringRef &Arg, StringRef &Value); }; } // namespace @@ -242,8 +245,7 @@ void OptionCategory::registerCategory() { /// LookupOption - Lookup the option specified by the specified option on the /// command line. If there is a value specified (after an equal sign) return /// that as well. This assumes that leading dashes have already been stripped. -static Option *LookupOption(StringRef &Arg, StringRef &Value, - const StringMap