[llvm-commits] Type::getPointerTo()
Chris Lattner
clattner at apple.com
Thu Apr 9 23:42:31 PDT 2009
On Apr 7, 2009, at 7:00 AM, Anders Johnsen wrote:
> Hi,
>
> 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.
Hi Anders,
I committed a tweaked version of your patch here, thanks!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090406/076193.html
-Chris
More information about the llvm-commits
mailing list