mirror of
https://github.com/rui314/mold.git
synced 2024-10-05 09:07:10 +03:00
temporary
This commit is contained in:
parent
7dbc0c0e76
commit
37741fd47d
5
mold.h
5
mold.h
@ -217,13 +217,12 @@ enum {
|
||||
class Symbol {
|
||||
public:
|
||||
Symbol() {}
|
||||
Symbol(std::string_view name) : name(name) {}
|
||||
Symbol(const Symbol &other) : name(other.name) {}
|
||||
|
||||
static Symbol *intern(std::string_view name) {
|
||||
static ConcurrentMap<Symbol> map;
|
||||
Symbol sym;
|
||||
sym.name = name;
|
||||
return map.insert(name, sym);
|
||||
return map.insert(name, {name});
|
||||
}
|
||||
|
||||
inline u64 get_addr() const;
|
||||
|
Loading…
Reference in New Issue
Block a user