summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-10-25 20:04:25 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-10-25 20:04:25 +0000
commit8bc7db777d5ace45ed35c562314a1c2d5f629e8a (patch)
treea7aa994634c8f1d75dea2211b5668ff567c95a4f /llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
parente5bf24684fbdb41388a66bfd2e5bc9eb94361387 (diff)
downloadbcm5719-llvm-8bc7db777d5ace45ed35c562314a1c2d5f629e8a.tar.gz
bcm5719-llvm-8bc7db777d5ace45ed35c562314a1c2d5f629e8a.zip
DIEHash: Summary hashing of member functions
llvm-svn: 193432
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
index 18264672ed2..85761c6ec55 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
@@ -413,7 +413,7 @@ void DIEHash::computeHash(const DIE &Die) {
I != E; ++I) {
// 7.27 Step 7
// If C is a nested type entry or a member function entry, ...
- if (isType((*I)->getTag())) {
+ if (isType((*I)->getTag()) || (*I)->getTag() == dwarf::DW_TAG_subprogram) {
StringRef Name = getDIEStringAttr(**I, dwarf::DW_AT_name);
// ... and has a DW_AT_name attribute
if (!Name.empty()) {
OpenPOWER on IntegriCloud