OSDN Git Service

[ORC] Modify DenseMap hashing for SymbolStringPtrs.
authorLang Hames <lhames@gmail.com>
Thu, 16 May 2019 00:21:10 +0000 (00:21 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 16 May 2019 00:21:10 +0000 (00:21 +0000)
commiteedb14b431629a7db1c1983d6d6c677bc1183404
treee99abc6ef52d82b6207fae9ca7c3988ff4cd986c
parent57b9d72d71b5a7596cd608731b60e4558c0e10d7
[ORC] Modify DenseMap hashing for SymbolStringPtrs.

Modifies the DenseMapInfo<SymbolStringPtr>::getHashValue method to take its
argument by const-ref rather than by value (to avoid unnecessary ref-counting
operations) and to defer to DenseMapInfo<void*> for the hash value computation
(since SymbolStringPtrs are just pointers under the hood).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360831 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/Orc/SymbolStringPool.h