[llvm] r274640 - Add a default parameter for getRegisteredOptions.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 10:25:17 PDT 2016


Author: zturner
Date: Wed Jul  6 12:25:16 2016
New Revision: 274640

URL: http://llvm.org/viewvc/llvm-project?rev=274640&view=rev
Log:
Add a default parameter for getRegisteredOptions.

Modified:
    llvm/trunk/include/llvm/Support/CommandLine.h

Modified: llvm/trunk/include/llvm/Support/CommandLine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CommandLine.h?rev=274640&r1=274639&r2=274640&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CommandLine.h (original)
+++ llvm/trunk/include/llvm/Support/CommandLine.h Wed Jul  6 12:25:16 2016
@@ -1733,7 +1733,7 @@ void PrintHelpMessage(bool Hidden = fals
 /// 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.




More information about the llvm-commits mailing list