This deduplicates some code between codegen backends and may in the future allow adding extra metadata that is only known at link time.
979dcf8e2f
e39eacd2d4