1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/include/llvm
Dimitry Andric d79e1e3658 Allow VersionPrinter to print to arbitrary raw_ostreams
Summary:
I would like to add printing of registered targets to clang's version
information.  For this to work correctly, the VersionPrinter logic in
CommandLine.cpp should support printing to arbitrary raw_ostreams,
instead of always defaulting to outs().

Add a raw_ostream& parameter to the function pointer type used for
VersionPrinter, and while doing so, introduce a typedef for convenience.

Note that VersionPrinter::print() will still default to using outs(),
the clang part will necessarily go into a separate review.

Reviewers: beanz, chandlerc, dberris, mehdi_amini, zturner

Reviewed By: mehdi_amini

Subscribers: llvm-commits

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

llvm-svn: 304835
2017-06-06 21:54:04 +00:00
..
ADT Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Analysis [LVI Printer] Rely on the LVI analysis functions rather than the LVI cache 2017-06-06 19:25:31 +00:00
AsmParser
Bitcode Remove ignore-empty-index-file option 2017-05-12 19:32:11 +00:00
CodeGen Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Config [cmake] Enable reverse iteration by default through build macro 2017-06-06 00:36:09 +00:00
DebugInfo Fix several more missing headers, all of these were hidden by "lucky" 2017-06-06 12:31:55 +00:00
Demangle
ExecutionEngine Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
IR [Atomics][LoopIdiom] Recognize unordered atomic memcpy 2017-06-06 16:45:25 +00:00
IRReader
LineEditor
Linker
LTO Symbols re-defined with -wrap and -defsym need to be excluded from inter- 2017-06-05 16:24:25 +00:00
MC [WebAssembly] MC: Refactor relocation handling 2017-06-06 19:15:05 +00:00
Object Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ObjectYAML Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Option Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Passes [PM/ThinLTO] Port the ThinLTO pipeline (both components) to the new PM. 2017-06-01 11:39:39 +00:00
ProfileData Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Support Allow VersionPrinter to print to arbitrary raw_ostreams 2017-06-06 21:54:04 +00:00
TableGen [TableGen] Remove a couple unused methods from Record that take a StringRef argument. NFC 2017-06-02 05:56:47 +00:00
Target Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
ToolDrivers/llvm-lib Move lib/LibDriver -> lib/ToolDrivers/llvm-lib. NFCI. 2017-05-13 22:06:46 +00:00
Transforms NewGVN: Fix PR/33187. This is a bug caused by two things: 2017-06-06 17:15:28 +00:00
XRay
CMakeLists.txt
InitializePasses.h Change code formatting to look like the surrounding code 2017-06-02 23:07:58 +00:00
LinkAllIR.h
LinkAllPasses.h Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
module.modulemap Fix CodeView-related modules build failures post-r304248 2017-05-31 01:08:43 +00:00
module.modulemap.build
Pass.h Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
PassAnalysisSupport.h
PassInfo.h [LegacyPassManager] Remove TargetMachine constructors 2017-05-18 17:21:13 +00:00
PassRegistry.h
PassSupport.h [LegacyPassManager] Remove TargetMachine constructors 2017-05-18 17:21:13 +00:00