In “The lion gave a speech,” what is the main function of the speech reference?

Literal and Figurative Usage: Metonymy and Types of Metaphor