The former world number one did not appreciate McIlroy's comments.