summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/docs/CommandLine.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/docs/CommandLine.rst b/llvm/docs/CommandLine.rst
index 9e04a57df3a..a660949881a 100644
--- a/llvm/docs/CommandLine.rst
+++ b/llvm/docs/CommandLine.rst
@@ -1289,8 +1289,7 @@ Here is an example of how the function could be used:
int main(int argc, char **argv) {
cl::OptionCategory AnotherCategory("Some options");
- StringMap<cl::Option*> Map;
- cl::getRegisteredOptions(Map);
+ StringMap<cl::Option*> &Map = cl::getRegisteredOptions();
//Unhide useful option and put it in a different category
assert(Map.count("print-all-options") > 0);
OpenPOWER on IntegriCloud