File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -105,16 +105,16 @@ class LLVM_ABI OptTable {
105105
106106 bool hasSubCommands () const { return SubCommandIDsOffset != 0 ; }
107107
108- unsigned getNumCommandIDs (ArrayRef<unsigned > SubCommandIDsTable) const {
108+ unsigned getNumSubCommandIDs (ArrayRef<unsigned > SubCommandIDsTable) const {
109109 // We embed the number of subcommand IDs in the value of the first offset.
110110 return SubCommandIDsTable[SubCommandIDsOffset];
111111 }
112112
113113 ArrayRef<unsigned >
114- getCommandIDs (ArrayRef<unsigned > SubCommandIDsTable) const {
114+ getSubCommandIDs (ArrayRef<unsigned > SubCommandIDsTable) const {
115115 return hasSubCommands () ? SubCommandIDsTable.slice (
116116 SubCommandIDsOffset + 1 ,
117- getNumCommandIDs (SubCommandIDsTable))
117+ getNumSubCommandIDs (SubCommandIDsTable))
118118 : ArrayRef<unsigned >();
119119 }
120120
@@ -153,7 +153,7 @@ class LLVM_ABI OptTable {
153153 [&](const auto &C) { return SubCommand == C.Name ; });
154154 assert (SCIT != SubCommands.end () &&
155155 " This helper is only for valid registered subcommands." );
156- auto SubCommandIDs = CandidateInfo->getCommandIDs (SubCommandIDsTable);
156+ auto SubCommandIDs = CandidateInfo->getSubCommandIDs (SubCommandIDsTable);
157157 unsigned CurrentSubCommandID = SCIT - &SubCommands[0 ];
158158 return std::find (SubCommandIDs.begin (), SubCommandIDs.end (),
159159 CurrentSubCommandID) != SubCommandIDs.end ();
Original file line number Diff line number Diff line change @@ -779,7 +779,7 @@ void OptTable::internalPrintHelp(
779779 // Retrieve the SubCommandIDs registered to the given current CandidateInfo
780780 // Option.
781781 ArrayRef<unsigned > SubCommandIDs =
782- CandidateInfo.getCommandIDs (SubCommandIDsTable);
782+ CandidateInfo.getSubCommandIDs (SubCommandIDsTable);
783783
784784 // If no registered subcommands, then only global options are to be printed.
785785 // If no valid SubCommand (empty) in commandline then print the current
You can’t perform that action at this time.
0 commit comments