[modules] Simplify reading of INPUT_FILE_OFFSETS record and make it robust against changes to record order.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220524 91177308-0d34-0410-b5e6-96231b3b80d8