<div dir="ltr"><div dir="ltr">Deletion is taken care of by ilist_alloc_traits<T>::deleteNode.</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 27, 2018 at 7:45 AM David Greene via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am confused by GlobalVariable::eraseFromParent's declaration:<br>
<br>
/// This method unlinks 'this' from the containing module and deletes it.<br>
void eraseFromParent();<br>
<br>
In Globals.cpp the unlinking is done and SymbolTableListTraits cleans up<br>
the symbol table but I don't see anything that actually deletes the<br>
object. Is the comment misleading or am I missing something?<br>
<br>
-David<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>