Changed how we handle writing out .dwo and .dwp files. We now write out DWO
sections sooner and destroy DIEBuilder. This should decrease memory footprint.
Ran on clang-17 build in debug mode with split-dwarf.
before
8:07.49 real, 664.62 user, 69.00 sys, 0 amem, 41601612 mmem
8:07.06 real, 669.60 user, 68.75 sys, 0 amem, 41822588 mmem
8:00.36 real, 664.14 user, 66.36 sys, 0 amem, 41561548 mmem
after
8:21.85 real, 682.23 user, 69.64 sys, 0 amem, 39379880 mmem
8:04.58 real, 671.62 user, 66.50 sys, 0 amem, 39735800 mmem
8:10.02 real, 680.67 user, 67.24 sys, 0 amem, 39662888 mmem
Depends on D151906
Do we ever invoke this function with a null NameToIndexMap?