[PM] Wire up support for writing bitcode with new PM.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 13 Jan 2014 07:38:24 +0000 (07:38 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 13 Jan 2014 07:38:24 +0000 (07:38 +0000)
commite2dc71d312fb9e46ad89429bade1f221ea8e67ff
treec2a98e5746519aa87c89547267571242c3652edb
parent5868b12dfb0cc2a946129ffebe58d098db89e332
[PM] Wire up support for writing bitcode with new PM.

This moves the old pass creation functionality to its own header and
updates the callers of that routine. Then it adds a new PM supporting
bitcode writer to the header file, and wires that up in the opt tool.
A test is added that round-trips code into bitcode and back out using
the new pass manager.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199078 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Bitcode/BitcodeWriterPass.h [new file with mode: 0644]
include/llvm/Bitcode/ReaderWriter.h
lib/Bitcode/Writer/BitcodeWriterPass.cpp
test/Other/new-pass-manager.ll
tools/llvm-extract/llvm-extract.cpp
tools/opt/NewPMDriver.cpp
tools/opt/opt.cpp