Add llvm-modextract tool.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 29 Nov 2016 21:54:33 +0000 (21:54 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 29 Nov 2016 21:54:33 +0000 (21:54 +0000)
commitcb6b920ba077fd2fb9cb1f4e4dc576ef9e9e3322
tree0ae1a4cf0150c74131b44d8df98b7b37069eaf26
parent96e29155749c920cdc17219cd57e0d3f08dcc923
Add llvm-modextract tool.

This program is for testing features that rely on multi-module bitcode files.
It takes a multi-module bitcode file, extracts one of the modules and writes
it to the output file.

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

llvm-svn: 288201
llvm/include/llvm/Bitcode/BitcodeReader.h
llvm/test/CMakeLists.txt
llvm/test/lit.cfg
llvm/test/tools/llvm-modextract/single.ll [new file with mode: 0644]
llvm/tools/LLVMBuild.txt
llvm/tools/llvm-modextract/CMakeLists.txt [new file with mode: 0644]
llvm/tools/llvm-modextract/LLVMBuild.txt [new file with mode: 0644]
llvm/tools/llvm-modextract/llvm-modextract.cpp [new file with mode: 0644]