Run the ObjCARCContractPass during LTO. The legacy LTO backend (under
LTO/ThinLTOCodeGenerator.cpp) already does this; this diff just adds that
behavior to the new LTO backend. Without that pass, the objc.clang.arc.use
intrinsic will get passed to the instruction selector, which doesn't know how to
handle it.
In order to test both the new and old pass managers, I've also added support for
the --[no-]lto-legacy-pass-manager flags.
P.S. Not sure if the ordering of the pass within the pipeline matters...
The reason this is not added to all backend pipelines is (presumably) that we do not want to run this unnecessarily on platforms that do not support ObjC. I think we should add a new flag to lto::Config, so users can request it. But as I mentioned below, I think it would be better to do it at the beginning of the codegen pass pipeline.