Orthogonal polynomials, Whittaker functions and the local Langlands correspondence