Emile Hirsch did not act in The Dark Knight because he was not old enough at the time of filming. The film was released in 2008, and Hirsch was only 18 years old at the time. The role of Bruce Wayne/Batman was eventually played by Christian Bale.
Unraveling Emile Hirsch: A Trivia Journey into the Life of an American Acting Sensation