[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)
commit46441a734ee9bcf121498a990e22ae9b1ee076dd
treeac1cb39a0ea53d442852474f12d8fc885952162d
parentc2fb896522fecb1f985205e78aad8fc810962934
[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).

llvm-svn: 360831
llvm/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h