<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I generally like removing old dead code, but I'm nervous about this one.    This is really redefining what is valid IR.  How about you start by adding an assert that the name is not null, see if anyone complains over the course of a couple of weeks, and if noone does, then take it out.<div><br></div><div>If/when this goes in, this will need a release note and update to LangRef.<br><div><br></div><div>-Chris</div><div><br><div><div>On Feb 5, 2014, at 10:30 AM, Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Ping.<br><br>A rebased patch is attached.<br><br>On 8 January 2014 15:13, Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:<br><blockquote type="cite">HI Chris,<br><br>This feature apparently exists to make it easier for frontends to<br>create auxiliary functions and variables without worrying about their<br>names. It has quiet a bit of history, I tried to find when it was<br>introduced, but it is older than the current mangler. It already<br>existed back when % and @ were one :-)<br><br>Given that LLVM will rename a global if the name is already used, it<br>is easy for a frontend to create auxiliary globals that are already<br>unique at the llvm level, so the mangler/codegen features seems a bit<br>redundant.<br><br>This is not a critical patch, just a possible cleanup I noticed when<br>moving the Mangler. It does remove a DenseMap, making the Mangler a<br>bit lighter.<br><br>Cheers,<br>Rafael<br></blockquote><span><t.patch></span></div></blockquote></div><br></div></div></body></html>