<div dir="ltr">This looks reasonable to me.  Thanks for updating this!</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 13, 2015 at 5:44 PM, Duncan P. N. Exon Smith <span dir="ltr"><<a href="mailto:dexonsmith@apple.com" target="_blank">dexonsmith@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">NVTPX has its own `remapMDNode()` which (1) does strange things and<br>
(2) is bitrotting.<br>
<br>
The first patch removes the strange, invalid logic to replace a<br>
global variable declaration (see the actual<br>
`DIBuilder::createGlobalVariable()` for what the field *really*<br>
does -- ignore the comment) with a ConstantInt representing the<br>
address space.  (It'll mangle any other metadata schema that<br>
happens to reference global variables, as well.)<br>
<br>
The second patch rewrites the logic to use `MapMetadata()`, so that<br>
this code doesn't continue to bitrot.<br>
<br>
These aren't really NFC, but it doesn't cause any test failures.<br>
<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">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/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div></div>
</div>