summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/InstrProfIndexed.h
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-04-18 22:00:22 +0000
committerJustin Bogner <mail@justinbogner.com>2014-04-18 22:00:22 +0000
commitb5d368e838934c1347063a20302acb0afea5f3ab (patch)
tree757aa121876612dd378dc9b53d36c44f792ffbea /llvm/lib/ProfileData/InstrProfIndexed.h
parentf00daf15f0135cece7c8154aef00cd9595220547 (diff)
downloadbcm5719-llvm-b5d368e838934c1347063a20302acb0afea5f3ab.tar.gz
bcm5719-llvm-b5d368e838934c1347063a20302acb0afea5f3ab.zip
ProfileData: Don't forward declare ComputeHash and make it static inline
llvm-svn: 206663
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfIndexed.h')
-rw-r--r--llvm/lib/ProfileData/InstrProfIndexed.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfIndexed.h b/llvm/lib/ProfileData/InstrProfIndexed.h
index 87eb4c3a027..ede5368ca2c 100644
--- a/llvm/lib/ProfileData/InstrProfIndexed.h
+++ b/llvm/lib/ProfileData/InstrProfIndexed.h
@@ -36,7 +36,7 @@ static inline uint64_t MD5Hash(StringRef Str) {
return endian::read<uint64_t, little, unaligned>(Result);
}
-uint64_t ComputeHash(HashT Type, StringRef K) {
+static inline uint64_t ComputeHash(HashT Type, StringRef K) {
switch (Type) {
case HashT::MD5:
return IndexedInstrProf::MD5Hash(K);
OpenPOWER on IntegriCloud