diff --git a/chibild.h b/chibild.h index ba75d4e9..5b89530c 100644 --- a/chibild.h +++ b/chibild.h @@ -81,9 +81,22 @@ public: ObjectFile *file; }; +namespace tbb { +template<> +struct tbb_hash_compare { + static size_t hash(const StringRef& k) { + return llvm::hash_value(k); + } + + static bool equal(const StringRef& k1, const StringRef& k2) { + return k1 == k2; + } +}; +} + class SymbolTable { public: - tbb::concurrent_hash_map map; + tbb::concurrent_hash_map map; }; class InputSection {