[CommandLine] Add missing Callbacks
authorDavid Green <david.green@arm.com>
Mon, 9 Dec 2019 10:33:33 +0000 (10:33 +0000)
committerDavid Green <david.green@arm.com>
Mon, 9 Dec 2019 11:37:34 +0000 (11:37 +0000)
commit4a6e13ad88ddcc0ab92ace49d4c761921e7f7070
tree4e0a5d932f04ea138bd0d1d6cf268cb685709bc0
parentb1aba0378e52be51cfb7fb6f03417ebf408d66cc
[CommandLine] Add missing Callbacks

It appears that the cl::bits options are not used anywhere in-tree. In
the recent addition to add Callback's to the options, the Callback was
missing from this one. This fixes it by adding the same code from the
other classes.

It also adds a simple test, of sorts, just to make sure these continue
compiling.
llvm/include/llvm/Support/CommandLine.h
llvm/unittests/Support/CommandLineTest.cpp