Make it easier to pass a custom diagnostic handler to the IR linker.
Use the newer/simple API for passing a diagnostic handler to the IR linker.