[llvm-commits] Type::getPointerTo()
Duncan Sands
baldrick at free.fr
Wed Apr 8 00:47:30 PDT 2009
Hi Anders,
> I'd like to suggest this patch which adds a getPointerTo() method to llvm::Type.
>
> This will allow the following code:
>
> myType->getPointerTo(0); (1)
>
> that is 100% identical to
>
> llvm::PointerType::get(myType, 0); (2)
>
> My motivation for the patch is that my code is full of (2) and it's
> getting somewhat ugly.
this looks good to me. If Chris doesn't complain in the
next 24 hours, I suggest you apply it :)
Ciao,
Duncan.
More information about the llvm-commits
mailing list