Add support for hashing attributes with DW_FORM_block. This required
authorEric Christopher <echristo@gmail.com>
Thu, 20 Feb 2014 02:50:45 +0000 (02:50 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 20 Feb 2014 02:50:45 +0000 (02:50 +0000)
commit31dd38ed2f67d5fcab6a7b27c26bd352c6cc93fd
tree9a1d06223b2ffbba16f6f72243e381a3d65398c0
parenteed3d708ee72d9b580fd7614e36924bfeab7e988
Add support for hashing attributes with DW_FORM_block. This required
passing down an AsmPrinter instance so we could compute the size of
the block which could be target specific. All of the test cases in
the unittest don't have any target specific data so we can use a NULL
AsmPrinter there. This also depends upon block data being added as
integers.

We can now hash the entire fission-cu.ll compile unit so turn the
flag on there with the hash value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201752 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DIEHash.cpp
lib/CodeGen/AsmPrinter/DIEHash.h
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/X86/fission-cu.ll
unittests/CodeGen/DIEHashTest.cpp