Make it possible to override the standard version printer. Not all tools
authorReid Spencer <rspencer@reidspencer.com>
Mon, 5 Jun 2006 16:22:56 +0000 (16:22 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 5 Jun 2006 16:22:56 +0000 (16:22 +0000)
commit515b5b379f3508f36f647bfdafce409e28a3d90b
treeeb8a8e442294845b00b76aaf162a969d9d7474ae
parentcdb08a3691b0949ea9fea690571631e1a842bf3a
Make it possible to override the standard version printer. Not all tools
built with CommandLine.h will want the --version option to report that the
tool belongs to LLVM. To override simply pass a void func() to the
cl::SetVersionPrinter() function and that void func() will be called when
it is time to print the version information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28687 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CommandLine.h
lib/Support/CommandLine.cpp