llvm-cov: Cleaned up print() function slightly.

Changed while to for loop. Removed unnecessary if statement.