From 2403b855cdd42db799052b30b286095d731f7646 Mon Sep 17 00:00:00 2001
From: Reid Spencer
The cl::SetVersionPrinter function is designed to be called +directly from main, and before +cl::ParseCommandLineOptions. Its use is optional. It simply arranges +for a function to be called in response to the --version option instead +of having the CommandLine library print out the usual version string +for LLVM. This is useful for programs that are not part of LLVM but wish to use +the CommandLine facilities. Such programs should just define a small +function that takes no arguments and returns void and that prints out +whatever version information is appropriate for the program. Pass the address +of that function to cl::SetVersionPrinter to arrange for it to be +called when the --version option is given by the user.
+ +