Add an extension point to the CommandLine library where clients can
authorChandler Carruth <chandlerc@gmail.com>
Fri, 22 Jul 2011 07:50:40 +0000 (07:50 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 22 Jul 2011 07:50:40 +0000 (07:50 +0000)
commit6d51d26a2479069f85a7676f664d6f998fc49a16
tree520bafd4b49131af91ce39c8aa894e61d6504b3e
parent12b2772578103952fb623b551fcaeb3cce069467
Add an extension point to the CommandLine library where clients can
register extra version information to be printed. This is designed to
allow those tools which link in various targets to also print those
registered targets under --version.

Currently this printing logic is embedded into the Support library
directly; a huge layering violation. This is the first step to hoisting
it out into the tools without adding lots of duplicated code.

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