If the cake is good: the cake.
If the cake is dry: the icing (or frosting, or whatever. I would call it icing).
Pretty much.
Though I will say if one part of the cake HAD to be good and the other bad, the cake has to be better. I mean, it does form the majority of the cake. But a good icing can save an otherwise a rather dry cake.