1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-26 01:44:29 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-12-10 20:12:43 +09:00
parent 91fec1592a
commit 860fa28459
2 changed files with 3 additions and 3 deletions

2
mold.h
View File

@ -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;

View File

@ -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};
}