]> granicus.if.org Git - clang/commit
Print registered targets in clang's version information
authorDimitry Andric <dimitry@andric.com>
Tue, 6 Jun 2017 21:54:21 +0000 (21:54 +0000)
committerDimitry Andric <dimitry@andric.com>
Tue, 6 Jun 2017 21:54:21 +0000 (21:54 +0000)
commit793458895a26fd5d67cda25e6253a4306f520561
tree2981b8b8ea0446cb1f160e7e02c8227b95d3bad3
parentbefb6674560e55441134731b45a3212f4ccbe4a2
Print registered targets in clang's version information

Summary:
Other llvm tools display their registered targets when showing version
information, but for some reason clang has never done this.

To support this, D33899 adds the llvm parts, which make it possible to
print version information to arbitrary raw_ostreams.  This change adds
a call to printRegisteredTargetsForVersion in clang's PrintVersion, and
adds a raw_ostream parameter to two other PrintVersion functions.

Reviewers: beanz, chandlerc, dberris, mehdi_amini, zturner

Reviewed By: mehdi_amini

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D33900

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304836 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp
tools/clang-format/ClangFormat.cpp
tools/clang-offload-bundler/ClangOffloadBundler.cpp