Make it easier to pass a custom diagnostic handler to the IR linker.