mirror of
https://github.com/rui314/mold.git
synced 2024-11-15 04:10:40 +03:00
temporary
This commit is contained in:
parent
b8f74f521f
commit
a061afd3c5
13
chibild.h
13
chibild.h
@ -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);
|
||||
|
13
symtab.h
13
symtab.h
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user