folly: elfcache: nuke StringPieceHash
authorLucian Grijincu <lucian@fb.com>
Wed, 5 Oct 2016 00:56:57 +0000 (17:56 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Wed, 5 Oct 2016 01:08:43 +0000 (18:08 -0700)
Summary: #accept2ship

Reviewed By: bixue2010

Differential Revision: D3971138

fbshipit-source-id: 25e0aeddebf001dd8e27a4939842915ccf1000ad

folly/experimental/symbolizer/ElfCache.h

index eb01d210f81a515d515d6cb8c642fc67cde2d151..8b8be334e7ba72448895380615b81f652692ff63 100644 (file)
@@ -29,6 +29,8 @@
 #include <boost/intrusive/list.hpp>
 #include <glog/logging.h>
 
+#include <folly/Hash.h>
+#include <folly/Range.h>
 #include <folly/experimental/symbolizer/Elf.h>
 
 namespace folly { namespace symbolizer {
@@ -116,10 +118,7 @@ class ElfCache : public ElfCacheBase {
   static std::shared_ptr<ElfFile> filePtr(const std::shared_ptr<Entry>& e);
 
   size_t capacity_;
-  std::unordered_map<
-    StringPiece,
-    std::shared_ptr<Entry>,
-    StringPieceHash> files_;
+  std::unordered_map<StringPiece, std::shared_ptr<Entry>, Hash> files_;
 
   typedef boost::intrusive::list<
       Entry,