[Modules] Include error diagnostics to the module hash

Add a CC1 option to include error diagnostics to the module hash:
-fmodules-hash-error-diagnostics

rdar://problem/31796394
5 files changed