Bitcode: Introduce BitcodeWriter interface.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 29 Nov 2016 20:43:47 +0000 (20:43 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 29 Nov 2016 20:43:47 +0000 (20:43 +0000)
commit5a0a2e648c267d99111b21482ca709f580e9ccc2
treeabf66eb720a1053fb9b82367df3087dcc61c6b2e
parentd34c26eb08fb783b0bcb52d5410cfbd5cf32757b
Bitcode: Introduce BitcodeWriter interface.

This interface allows clients to write multiple modules to a single
bitcode file. Also introduce the llvm-cat utility which can be used
to create a bitcode file containing multiple modules.

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

llvm-svn: 288195
llvm/include/llvm/Bitcode/BitcodeReader.h
llvm/include/llvm/Bitcode/BitcodeWriter.h
llvm/include/llvm/Bitcode/BitstreamWriter.h
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/test/Bitcode/Inputs/multi-module.ll [new file with mode: 0644]
llvm/test/Bitcode/multi-module.ll [new file with mode: 0644]
llvm/test/CMakeLists.txt
llvm/tools/LLVMBuild.txt
llvm/tools/llvm-cat/CMakeLists.txt [new file with mode: 0644]
llvm/tools/llvm-cat/LLVMBuild.txt [new file with mode: 0644]
llvm/tools/llvm-cat/llvm-cat.cpp [new file with mode: 0644]