metonymy

(in rhetoric) the use of the name of one thing for that of another to which it has some logical relation, as ‘sceptre’ for ‘sovereignty’ or ‘the bottle’ for ‘strong drink’.