This depends on https://reviews.llvm.org/D35373
With that in place we can use lld's own infrastructure for the low level detail of dwarf parsing.
With this we don't decompress sections twice, we don't scan all realocations and even with this simplistic implementation linking clang with gdb index goes from 34.09 seconds to 20.80 seconds.
Are these classes designed to be inherited? I prefer delegation over inheritance and am wondering if this is a good approach.