Add preliminary support for hashing DIEs and breaking them into
authorEric Christopher <echristo@gmail.com>
Fri, 26 Jul 2013 17:02:41 +0000 (17:02 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 26 Jul 2013 17:02:41 +0000 (17:02 +0000)
commit3dee575b8dfe9c3d89f581e51dd11ddd08c43cd6
tree8559512eff23c3111d0e179fd5a1f8bc4167dc13
parent956e5aa3bd32212c6902a585a367dbf58d685340
Add preliminary support for hashing DIEs and breaking them into
type units.

Initially this support is used in the computation of an ODR checker
for C++. For now we're attaching it to the DIE, but in the future
it will be attached to the type unit.

This also starts breaking out types into the separation for type
units, but without actually splitting the DIEs.

In preparation for hashing the DIEs this adds a DIEString type
that contains a StringRef with the string contained at the label.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187213 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DIE.cpp
lib/CodeGen/AsmPrinter/DIE.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
test/DebugInfo/generate-odr-hash.ll [new file with mode: 0644]