Split out the logic to parse structure-like types into a separate
function, in an attempt to reduce the complexity of ParseTypeFromDWARF.
Note: Phab seems to be mis-rendering the diff. I'd be happy to move this
review to the mailing list to make things easier.
Inspired by discussion in https://reviews.llvm.org/D68130.