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 | b5d368e838934c1347063a20302acb0afea5f3ab (patch) | |
tree | 757aa121876612dd378dc9b53d36c44f792ffbea /llvm/lib/ProfileData/InstrProfReader.cpp | |
parent | f00daf15f0135cece7c8154aef00cd9595220547 (diff) | |
download | bcm5719-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/InstrProfReader.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfReader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp index c8d2c2781c7..4f110a57122 100644 --- a/llvm/lib/ProfileData/InstrProfReader.cpp +++ b/llvm/lib/ProfileData/InstrProfReader.cpp @@ -243,6 +243,11 @@ template class RawInstrProfReader<uint32_t>; template class RawInstrProfReader<uint64_t>; } +InstrProfLookupTrait::hash_value_type +InstrProfLookupTrait::ComputeHash(StringRef K) { + return IndexedInstrProf::ComputeHash(HashType, K); +} + bool IndexedInstrProfReader::hasFormat(const MemoryBuffer &DataBuffer) { if (DataBuffer.getBufferSize() < 8) return false; |