From e66e001c9053a180bc36c2e53e5694ba8335d224 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 7 Oct 2015 23:20:23 +0000 Subject: [PATCH] ELF2: Use the same name as COFF. llvm-svn: 249635 --- lld/ELF/InputFiles.h | 2 +- lld/ELF/SymbolTable.h | 2 +- lld/ELF/Symbols.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h index f26be48ff916..dfb0f21ba153 100644 --- a/lld/ELF/InputFiles.h +++ b/lld/ELF/InputFiles.h @@ -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(); diff --git a/lld/ELF/SymbolTable.h b/lld/ELF/SymbolTable.h index 2ebec308dca2..93b9b20b1756 100644 --- a/lld/ELF/SymbolTable.h +++ b/lld/ELF/SymbolTable.h @@ -58,7 +58,7 @@ public: SymbolBody *getEntrySym() const { if (!EntrySym) return nullptr; - return EntrySym->getReplacement(); + return EntrySym->repl(); } void addUndefinedSym(StringRef Name); diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index b47f365dc398..76e09a39e497 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -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