Rory McIlroy posted a two-under-par 69 during his final round of The Open at Royal Portrush as he finished in a tie for seventh place.