summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2016-11-07 02:43:01 +0000
committerBrian Gesiak <modocache@gmail.com>2016-11-07 02:43:01 +0000
commit2980b0a15ef2dff32fb7579d2d2aed1e0455ad90 (patch)
treea6b1784713d5bd8790e81b42212d6343cb7e524e
parent6ba1db9f787a373677cb9c08c0e7b7ad305604d5 (diff)
downloadbcm5719-llvm-2980b0a15ef2dff32fb7579d2d2aed1e0455ad90.tar.gz
bcm5719-llvm-2980b0a15ef2dff32fb7579d2d2aed1e0455ad90.zip
Update CommandLine.rst getRegisteredOptions example
Summary: Update the docs to match the changes in http://reviews.llvm.org/D7132 Reviewers: beanz, llvm-commits, modocache Differential Revision: https://reviews.llvm.org/D26296 llvm-svn: 286094
-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