http://llvm.org/bugs/show_bug.cgi?id=4217

           Summary: Eliminate the Annotable and Annotation classes by making
                    MachineFunction a pass
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The only use of the Annotable and Annotation classes are for putting a
MachineFunction on Function.  This class is bad for a number of reasons and
should be removed.

The fix is to make MachineFunction be an analysis group that is provided by the
various instruction selectors and required/preserved by MachineFunctionPass. 
That way the lifetime of the MachineFunction is managed by PassMgr, not be
explicit code.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to