ELF2: Use the same name as COFF.

llvm-svn: 249635
This commit is contained in:
Rui Ueyama 2015-10-07 23:20:23 +00:00
parent 8d9ace60ca
commit e66e001c90
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -58,7 +58,7 @@ public:
SymbolBody *getEntrySym() const {
if (!EntrySym)
return nullptr;
return EntrySym->getReplacement();
return EntrySym->repl();
}
void addUndefinedSym(StringRef Name);

View File

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