summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReaderInternals.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-07-14 18:42:41 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-07-14 18:42:41 +0000
commit3b6374133ca452ec32184a03612b68ef41267a6c (patch)
treebe612819271a5c2ed8a033af3c8208f4721b0284 /clang/lib/Serialization/ASTReaderInternals.h
parent86a6f56c82a314c4d68d686557533cbe6d914495 (diff)
downloadbcm5719-llvm-3b6374133ca452ec32184a03612b68ef41267a6c.tar.gz
bcm5719-llvm-3b6374133ca452ec32184a03612b68ef41267a6c.zip
[modules] Avoid repeatedly hashing the same name when looking it up in multiple module files.
llvm-svn: 242180
Diffstat (limited to 'clang/lib/Serialization/ASTReaderInternals.h')
-rw-r--r--clang/lib/Serialization/ASTReaderInternals.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Serialization/ASTReaderInternals.h b/clang/lib/Serialization/ASTReaderInternals.h
index d1b032b27ac..5b1c4f4963e 100644
--- a/clang/lib/Serialization/ASTReaderInternals.h
+++ b/clang/lib/Serialization/ASTReaderInternals.h
@@ -68,8 +68,8 @@ public:
return a.Kind == b.Kind && a.Data == b.Data;
}
- hash_value_type ComputeHash(const DeclNameKey &Key) const;
- internal_key_type GetInternalKey(const external_key_type& Name) const;
+ static hash_value_type ComputeHash(const DeclNameKey &Key);
+ static internal_key_type GetInternalKey(const external_key_type& Name);
static std::pair<unsigned, unsigned>
ReadKeyDataLength(const unsigned char*& d);
OpenPOWER on IntegriCloud