<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 22, 2016 at 2:13 PM, Rui Ueyama <span dir="ltr"><<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is not a bad change, but I'd appreciate if you write a sentence why you are making this change in the description.</div></blockquote><div><br></div><div>Sure, I was thinking of doing that but in the end the change seemed so simple as to not need it. I'll include it in the future. In this case, I was adding some debug code somewhere that we had a `const SymbolBody` and it was failing to compile (initially I was invoking it in the debugger and even the debugger was complaining).</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 22, 2016 at 10:04 PM, Sean Silva via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: silvas<br>
Date: Tue Mar 22 16:04:03 2016<br>
New Revision: 264094<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=264094&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=264094&view=rev</a><br>
Log:<br>
Mark SymbolBody::getSymbol as `const`.<br>
<br>
Modified:<br>
    lld/trunk/ELF/Symbols.h<br>
<br>
Modified: lld/trunk/ELF/Symbols.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=264094&r1=264093&r2=264094&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=264094&r1=264093&r2=264094&view=diff</a><br>
==============================================================================<br>
--- lld/trunk/ELF/Symbols.h (original)<br>
+++ lld/trunk/ELF/Symbols.h Tue Mar 22 16:04:03 2016<br>
@@ -106,7 +106,7 @@ public:<br>
   // you can access P->Backref->Body to get the resolver's result.<br>
   void setBackref(Symbol *P) { Backref = P; }<br>
   SymbolBody &repl() { return Backref ? *Backref->Body : *this; }<br>
-  Symbol *getSymbol() { return Backref; }<br>
+  Symbol *getSymbol() const { return Backref; }<br>
<br>
   // Decides which symbol should "win" in the symbol table, this or<br>
   // the Other. Returns 1 if this wins, -1 if the Other wins, or 0 if<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>