[llvm-commits] [PATCH] PR746: Make Function not annotatable and get rid of Annotations

Gordon Henriksen gordonhenriksen at mac.com
Sun Jan 21 11:59:06 PST 2007


This patch addresses http://llvm.org/PR746.

This patch simply replaces the subversive and overgeneralized  
annotation classes with a map in MachineFunction and a listener  
interface so that MachineFunctions can destroy themselves when the  
parent Function is deleted.

I wish I'd noticed PR746 before http://llvm.org/PR927. Not sure  
you'll want to apply this patch in light of the comments on this  
PR746, which suggest using an Analysis to store MachineFunctions, and  
thus to also manage their lifetimes.

— Gordon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: replace-annotation-with-listener.patch
Type: application/octet-stream
Size: 22006 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070121/eac3eee1/attachment.obj>
-------------- next part --------------



More information about the llvm-commits mailing list