This patch adds the ability for the ObjectYAML DWARFEmitter to calculate the lengths of DIEs. This is accomplished by creating a DIEFixupVisitor class which traverses the DWARF DIEs to calculate and fix up the lengths in the Compile Unit header.
The DIEFixupVisitor can be extended in the future to enable more complex fix ups which will enable simplified YAML string representations.
This is also very useful when using the YAML format in unit tests because you no longer need to know the length of the compile unit when writing the YAML string.