Add support for DW_FORM_flag and DW_FORM_flag_present to the DIE hashing
authorEric Christopher <echristo@gmail.com>
Fri, 31 Jan 2014 20:02:58 +0000 (20:02 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 31 Jan 2014 20:02:58 +0000 (20:02 +0000)
commit5ff4b203e6e1aeb450ad18ffd7693499018d14e6
treec344a779e82d19bf0f604744cd9f340e0da1fcec
parent5ce9d65a2875a62f3b138a7a3e77244757ca9ce5
Add support for DW_FORM_flag and DW_FORM_flag_present to the DIE hashing
algorithm. Sink the 'A' + Attribute hash into each form so we don't
have to check valid forms before deciding whether or not we're going
to hash which will let the default be to return without doing anything.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200571 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DIEHash.cpp
unittests/CodeGen/DIEHashTest.cpp