forked from OSchip/llvm-project
parent
8d9ace60ca
commit
e66e001c90
|
@ -143,7 +143,7 @@ public:
|
|||
uint32_t FirstNonLocal = this->Symtab->sh_info;
|
||||
if (SymbolIndex < FirstNonLocal)
|
||||
return nullptr;
|
||||
return SymbolBodies[SymbolIndex - FirstNonLocal]->getReplacement();
|
||||
return SymbolBodies[SymbolIndex - FirstNonLocal]->repl();
|
||||
}
|
||||
|
||||
Elf_Sym_Range getLocalSymbols();
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
SymbolBody *getEntrySym() const {
|
||||
if (!EntrySym)
|
||||
return nullptr;
|
||||
return EntrySym->getReplacement();
|
||||
return EntrySym->repl();
|
||||
}
|
||||
|
||||
void addUndefinedSym(StringRef Name);
|
||||
|
|
|
@ -87,7 +87,7 @@ public:
|
|||
// has chosen the object among other objects having the same name,
|
||||
// you can access P->Backref->Body to get the resolver's result.
|
||||
void setBackref(Symbol *P) { Backref = P; }
|
||||
SymbolBody *getReplacement() { return Backref ? Backref->Body : this; }
|
||||
SymbolBody *repl() { return Backref ? Backref->Body : this; }
|
||||
|
||||
// Decides which symbol should "win" in the symbol table, this or
|
||||
// the Other. Returns 1 if this wins, -1 if the Other wins, or 0 if
|
||||
|
|
Loading…
Reference in New Issue