[PM] Wire up support for writing bitcode with new PM.

Description

[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.

Details

Committed
chandlercJan 12 2014, 11:38 PM
Parents
rL199077: llvm/test/ExecutionEngine/MCJIT/load-object-a.ll: Put together rm(1) and mkdir…
Branches
Unknown
Tags
Unknown