[PATCH] D17321: DIEData, DIEWriter: introduce and begin migration.

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 19 15:47:22 PST 2016


> On Feb 19, 2016, at 12:31 PM, Peter Collingbourne via llvm-commits <llvm-commits at lists.llvm.org> wrote:
> 
> them incorrectly, see DwarfDebug::makeTypeSignature). Since the page at
> https://gcc.gnu.org/wiki/DebugFission does not specify how the hash is to be
> computed, could we maybe do something simpler (e.g. MD5 hash the DIE bytes
> themselves) and avoid needing to use something like the DWARF type hashing
> algorithm for this?

Where it can LLVM uses an MD5 sum over the mangled name of the type to avoid the expensive DWARF type hashing.

Just a side node: Debug info fission is in the process of being standardized in DWARF 5. The progress can be tracked here:
  http://dwarfstd.org/Issues.php?type=closed4 (search for “fission” and “split DWARF”)
The DWARF specification may deviate from the description on the GCC wiki a little, but we probably want to follow the DWARF spec where that makes sense.

-- adrian


More information about the llvm-commits mailing list