Refactor ASTReader::readInputFileInfo to return a struct containing the related information.

No functionality change.
[Modules] Make sure that the synthesized file "__inferred_module.map" doesn't show up as dependency of a module file.

Follow-up for rdar://15459210