1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/include/llvm/Bitcode
Teresa Johnson 44efe1bd4a [PM] BitcodeWriterPass should derive from PassInfoMixin
Summary:
The BitcodeWriterPass was ported a couple years ago, and predates the
PassInfoMixin. Make BitcodeWriterPass from that base class.

Should BitcodeWriterPass be added to the PassRegistry.def file? It seems
like that is only for passes that can be added arbitrarily, e.g. via the
-passes flag to the opt tool. Whereas the bitcode writer is added
specially based on the output type (and requires an output stream and
other parameters). For now I have left it out of the PassRegistry, but
let me know if it should go there.

Finally, I was considering an NFC change of the legacy WriteBitcodePass
to BitcodeWriterLegacyPass to make its usage clearer and more consistent
with other legacy passes. WDYT?

Reviewers: mehdi_amini

Subscribers: llvm-commits

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

llvm-svn: 278566
2016-08-12 21:33:36 +00:00
..
BitCodes.h
BitcodeWriterPass.h [PM] BitcodeWriterPass should derive from PassInfoMixin 2016-08-12 21:33:36 +00:00
BitstreamReader.h
BitstreamWriter.h
LLVMBitCodes.h Add writeonly IR attribute 2016-07-04 08:01:29 +00:00
ReaderWriter.h Update doxygen description for WriteBitcodeToFile() API (NFC) 2016-07-18 21:29:24 +00:00