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
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);