Use the DiagnosticHandler to print diagnostics when reading bitcode.