From b18fddc43276a517a4293bb7931e59f1a2ccb690 Mon Sep 17 00:00:00 2001 From: Lucian Grijincu Date: Tue, 4 Oct 2016 17:56:57 -0700 Subject: [PATCH] folly: elfcache: nuke StringPieceHash Summary: #accept2ship Reviewed By: bixue2010 Differential Revision: D3971138 fbshipit-source-id: 25e0aeddebf001dd8e27a4939842915ccf1000ad --- folly/experimental/symbolizer/ElfCache.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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, -- 2.34.1