<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Mar 6, 2015 at 3:40 PM Frédéric Riss <<a href="mailto:friss@apple.com">friss@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><blockquote type="cite"><div>On Mar 6, 2015, at 3:33 PM, Eric Christopher <<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>> wrote:</div><br><div><div dir="ltr">So they're mostly read only, why change the values rather than create a new one?<br></div></div></blockquote><div><br></div></div></div><div style="word-wrap:break-word"><div><div>Simply convenience. It’s easier to store a DIEInteger * and just call setValue() on it than to store a reference to the  place where the DIEInteger was used to be able to replace it. I could go with the second option, but I’d need to add more complicated API to DIE to be able to change an attribute’s value.</div><div><br></div><div>Do you want me to do that?</div><div><br></div></div></div></blockquote><div><br></div><div>I don't have a strong opinion I guess. Up to now they've been read only DIEs, but I don't really know what we get out of keeping it that way.</div><div><br></div><div>I guess if it starts to get icky or complicated we can rethink it.</div><div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div></div><div>Fred</div></div></div><div style="word-wrap:break-word"><div><br><blockquote type="cite"><div><div dir="ltr">-eric<br></div><br><div class="gmail_quote">On Fri, Mar 6, 2015 at 3:32 PM Frederic Riss <<a href="mailto:friss@apple.com" target="_blank">friss@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: friss<br>
Date: Fri Mar  6 17:22:46 2015<br>
New Revision: 231529<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=231529&view=rev" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project?rev=231529&view=rev</a><br>
Log:<br>
Add DIEInteger::setValue() method.<br>
<br>
dsymutil needs to 'patch' attribute values after creating them. Just<br>
add this trivial capability.<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm/<u></u>CodeGen/DIE.h<br>
<br>
Modified: llvm/trunk/include/llvm/<u></u>CodeGen/DIE.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DIE.h?rev=231529&r1=231528&r2=231529&view=diff" target="_blank">http://llvm.org/viewvc/llvm-<u></u>project/llvm/trunk/include/<u></u>llvm/CodeGen/DIE.h?rev=231529&<u></u>r1=231528&r2=231529&view=diff</a><br>
==============================<u></u>==============================<u></u>==================<br>
--- llvm/trunk/include/llvm/<u></u>CodeGen/DIE.h (original)<br>
+++ llvm/trunk/include/llvm/<u></u>CodeGen/DIE.h Fri Mar  6 17:22:46 2015<br>
@@ -278,6 +278,7 @@ public:<br>
   void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const override;<br>
<br>
   uint64_t getValue() const { return Integer; }<br>
+  void setValue(uint64_t Val) { Integer = Val; }<br>
<br>
   /// SizeOf - Determine size of integer value in bytes.<br>
   ///<br>
<br>
<br>
______________________________<u></u>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote></div>
</div></blockquote></div></div></blockquote></div></div>