summaryrefslogtreecommitdiffstats
path: root/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
commitdc93651068fb42fe9c04bae250bbc520dd1f551d (patch)
treef807cddf64f1815662d6864219bc3e347a07fc14 /lib/Serialization/ASTReaderInternals.h
parent6ee7a0968c3e88322ceb761ec6a6bda608bfd9e3 (diff)
[modules] Avoid repeatedly hashing the same name when looking it up in multiple module files.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTReaderInternals.h')
-rw-r--r--lib/Serialization/ASTReaderInternals.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Serialization/ASTReaderInternals.h b/lib/Serialization/ASTReaderInternals.h
index d1b032b27a..5b1c4f4963 100644
--- a/lib/Serialization/ASTReaderInternals.h
+++ b/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);