From e32368fc6edd4f1c284a9ba0cbdd6b8931dbe925 Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Tue, 22 Mar 2016 21:04:03 +0000 Subject: [PATCH] Mark SymbolBody::getSymbol as `const`. llvm-svn: 264094 --- lld/ELF/Symbols.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index 6c869f6..d6bd0eb 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -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 -- 2.7.4