1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-15 04:10:40 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-10-12 13:00:23 +09:00
parent b8f74f521f
commit a061afd3c5
2 changed files with 13 additions and 13 deletions

View File

@ -90,19 +90,6 @@ 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 InputSection {
public:
InputSection(ObjectFile *file, ELF64LE::Shdr *hdr, StringRef name);

View File

@ -2,6 +2,19 @@
#include "chibild.h"
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:
void add(StringRef key, Symbol sym);