[PM] Update the creation of an IR printing pass to reflect the API
update in LLVM r199044.