OSDN Git Service

Add a default parameter for getRegisteredOptions.
authorZachary Turner <zturner@google.com>
Wed, 6 Jul 2016 17:25:16 +0000 (17:25 +0000)
committerZachary Turner <zturner@google.com>
Wed, 6 Jul 2016 17:25:16 +0000 (17:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274640 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h

index c363735..70465a0 100644 (file)
@@ -1733,7 +1733,7 @@ void PrintHelpMessage(bool Hidden = false, bool Categorized = false);
 /// Hopefully this API can be depricated soon. Any situation where options need
 /// to be modified by tools or libraries should be handled by sane APIs rather
 /// than just handing around a global list.
-StringMap<Option *> &getRegisteredOptions(SubCommand &Sub);
+StringMap<Option *> &getRegisteredOptions(SubCommand &Sub = *TopLevelSubCommand);
 
 //===----------------------------------------------------------------------===//
 // Standalone command line processing utilities.