diff options
| author | Brian Gesiak <modocache@gmail.com> | 2016-11-07 02:43:01 +0000 |
|---|---|---|
| committer | Brian Gesiak <modocache@gmail.com> | 2016-11-07 02:43:01 +0000 |
| commit | 2980b0a15ef2dff32fb7579d2d2aed1e0455ad90 (patch) | |
| tree | a6b1784713d5bd8790e81b42212d6343cb7e524e /llvm | |
| parent | 6ba1db9f787a373677cb9c08c0e7b7ad305604d5 (diff) | |
| download | bcm5719-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
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/docs/CommandLine.rst | 3 |
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); |

