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

Attachment: replace-annotation-with-listener.patch
Description: Binary data


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to