[LLVMbugs] [Bug 1120] NEW: ConstantInt should overload getType() to return an IntegerType*

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 16 16:34:29 PST 2007


           Summary: ConstantInt should overload getType() to return an
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca

If a ConstantInt user wants the number of bits in the int, they have to call
getType, then cast the Type* to an IntegerType*. Instead, it should be possible
to  retrieve the IntegerType* directly from ConstantInt.

This is difficult because ConstantInt doesn't actually keep the IntegerType*
internally, nor does it require one on construction, etc. This will probably
cause residual effects throughout LLVM, but it shouldn't be very hard to clean up.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list