diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-04-18 22:00:22 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-04-18 22:00:22 +0000 |
commit | 1c60993799ad7ade9eea6f2603525d2086e90729 (patch) | |
tree | b11a32e54ed5161d816aa853099c403b9519f89e /lib/ProfileData/InstrProfIndexed.h | |
parent | 2e3463ec43ab3ffc1c4e07f870f5c9a14279aa17 (diff) | |
download | llvm-1c60993799ad7ade9eea6f2603525d2086e90729.tar.gz llvm-1c60993799ad7ade9eea6f2603525d2086e90729.tar.bz2 llvm-1c60993799ad7ade9eea6f2603525d2086e90729.tar.xz |
ProfileData: Don't forward declare ComputeHash and make it static inline
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ProfileData/InstrProfIndexed.h')
-rw-r--r-- | lib/ProfileData/InstrProfIndexed.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ProfileData/InstrProfIndexed.h b/lib/ProfileData/InstrProfIndexed.h index 87eb4c3a02..ede5368ca2 100644 --- a/lib/ProfileData/InstrProfIndexed.h +++ b/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); |