From: Lucian Grijincu Date: Wed, 5 Oct 2016 00:56:57 +0000 (-0700) Subject: folly: elfcache: nuke StringPieceHash X-Git-Tag: v2016.10.10.00~16 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b18fddc43276a517a4293bb7931e59f1a2ccb690;p=folly.git folly: elfcache: nuke StringPieceHash Summary: #accept2ship Reviewed By: bixue2010 Differential Revision: D3971138 fbshipit-source-id: 25e0aeddebf001dd8e27a4939842915ccf1000ad --- diff --git a/folly/experimental/symbolizer/ElfCache.h b/folly/experimental/symbolizer/ElfCache.h index eb01d210..8b8be334 100644 --- a/folly/experimental/symbolizer/ElfCache.h +++ b/folly/experimental/symbolizer/ElfCache.h @@ -29,6 +29,8 @@ #include #include +#include +#include #include namespace folly { namespace symbolizer { @@ -116,10 +118,7 @@ class ElfCache : public ElfCacheBase { static std::shared_ptr filePtr(const std::shared_ptr& e); size_t capacity_; - std::unordered_map< - StringPiece, - std::shared_ptr, - StringPieceHash> files_; + std::unordered_map, Hash> files_; typedef boost::intrusive::list< Entry,