1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-26 18:02:30 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-09 22:00:24 +09:00
parent aebb80584b
commit 69f13f4832

View File

@ -81,9 +81,22 @@ public:
ObjectFile *file;
};
namespace tbb {
template<>
struct tbb_hash_compare<StringRef> {
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<int, int> map;
tbb::concurrent_hash_map<StringRef, Symbol *> map;
};
class InputSection {