[lld] r264094 - Mark SymbolBody::getSymbol as `const`.

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 14:04:03 PDT 2016


Author: silvas
Date: Tue Mar 22 16:04:03 2016
New Revision: 264094

URL: http://llvm.org/viewvc/llvm-project?rev=264094&view=rev
Log:
Mark SymbolBody::getSymbol as `const`.

Modified:
    lld/trunk/ELF/Symbols.h

Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=264094&r1=264093&r2=264094&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Tue Mar 22 16:04:03 2016
@@ -106,7 +106,7 @@ public:
   // you can access P->Backref->Body to get the resolver's result.
   void setBackref(Symbol *P) { Backref = P; }
   SymbolBody &repl() { return Backref ? *Backref->Body : *this; }
-  Symbol *getSymbol() { return Backref; }
+  Symbol *getSymbol() const { return Backref; }
 
   // 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