llvm-cov: Rework the API for getting the coverage of a file (NFC)