Adds fatal errors for any target that does not support the Tiny codemodel.
Not 100% sure what the best way to do this is. Commoning the getEffectiveCodeModel function into single place seems like a sensible idea, but where that function goes I'm not sure of.
Split out of D49673