Answer:
B. metaphor
Step-by-step explanation:
A metaphor is a comparison of two different things, without "like" or "as."
The bedroom is not literally a pigsty (a pen or enclosure for pigs), but the metaphor is used to stress how untidy or dirty it is.