mirror of
https://github.com/rui314/mold.git
synced 2024-12-25 17:34:02 +03:00
temporary
This commit is contained in:
parent
91fec1592a
commit
860fa28459
2
mold.h
2
mold.h
@ -844,7 +844,7 @@ public:
|
||||
|
||||
void parse();
|
||||
void resolve_symbols();
|
||||
ArrayRef<Symbol *> find_aliases(Symbol *sym);
|
||||
std::span<Symbol *> find_aliases(Symbol *sym);
|
||||
|
||||
std::string_view soname;
|
||||
|
||||
|
@ -764,10 +764,10 @@ void SharedFile::resolve_symbols() {
|
||||
}
|
||||
}
|
||||
|
||||
ArrayRef<Symbol *> SharedFile::find_aliases(Symbol *sym) {
|
||||
std::span<Symbol *> SharedFile::find_aliases(Symbol *sym) {
|
||||
assert(sym->file == this);
|
||||
auto [begin, end] = std::equal_range(
|
||||
symbols.begin(), symbols.end(), sym,
|
||||
[&](Symbol *a, Symbol *b) { return a->value < b->value; });
|
||||
return ArrayRef<Symbol *>(&*begin, end - begin);
|
||||
return {begin, end};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user