diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-10-21 18:59:40 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-10-21 18:59:40 +0000 |
commit | 980d4994b271d647f1357e93c394aeadd4424722 (patch) | |
tree | 243ba5e2e579adb6173158f4e9944bad710e15fd /llvm/lib/CodeGen/AsmPrinter/DIEHash.h | |
parent | fa64659bd8025db9c1a6e010ff6a0982aaf43eb0 (diff) | |
download | bcm5719-llvm-980d4994b271d647f1357e93c394aeadd4424722.tar.gz bcm5719-llvm-980d4994b271d647f1357e93c394aeadd4424722.zip |
DWARF type hashing: Handle multiple (including recursive) references to the same type
This uses a map, keeping the type DIE numbering separate from the DIEs
themselves - alternatively we could do things the way GCC does if we
want to add an integer to the DIE type to record the numbering there.
llvm-svn: 193105
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIEHash.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIEHash.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIEHash.h b/llvm/lib/CodeGen/AsmPrinter/DIEHash.h index ee753fea99c..f6650cc93e7 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIEHash.h +++ b/llvm/lib/CodeGen/AsmPrinter/DIEHash.h @@ -11,6 +11,7 @@ // //===----------------------------------------------------------------------===// +#include "llvm/ADT/DenseMap.h" #include "llvm/Support/MD5.h" namespace llvm { @@ -125,5 +126,6 @@ private: private: MD5 Hash; + DenseMap<DIE*, unsigned> Numbering; }; } |