[lld] r249635 - ELF2: Use the same name as COFF.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 16:20:24 PDT 2015


Author: ruiu
Date: Wed Oct  7 18:20:23 2015
New Revision: 249635

URL: http://llvm.org/viewvc/llvm-project?rev=249635&view=rev
Log:
ELF2: Use the same name as COFF.

Modified:
    lld/trunk/ELF/InputFiles.h
    lld/trunk/ELF/SymbolTable.h
    lld/trunk/ELF/Symbols.h

Modified: lld/trunk/ELF/InputFiles.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.h?rev=249635&r1=249634&r2=249635&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.h (original)
+++ lld/trunk/ELF/InputFiles.h Wed Oct  7 18:20:23 2015
@@ -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();

Modified: lld/trunk/ELF/SymbolTable.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.h?rev=249635&r1=249634&r2=249635&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.h (original)
+++ lld/trunk/ELF/SymbolTable.h Wed Oct  7 18:20:23 2015
@@ -58,7 +58,7 @@ public:
   SymbolBody *getEntrySym() const {
     if (!EntrySym)
       return nullptr;
-    return EntrySym->getReplacement();
+    return EntrySym->repl();
   }
 
   void addUndefinedSym(StringRef Name);

Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=249635&r1=249634&r2=249635&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Wed Oct  7 18:20:23 2015
@@ -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




More information about the llvm-commits mailing list