This patch proposes to move the emission of types and type-like entities from
DwarfDebug::beginModule() to DwarfDebug::endModule(). Effectively, this changes
nothing but the order of debug entities in the resulting DWARF.
This is needed to simplify DWARF emission in a context of proper support of
function-local types which comes in the next patch (D144006), making all
the types handled in a single place, together with other global and
local entities.
No functional changes intended.