What movie was Dustin Hoffman getting teeth pulled?

You're probably thinking of Marathon Man , where the character played by Hoffman is being tortured by an evil dentist in order to get information.