[llvm-commits] Type::getPointerTo()
Anders Johnsen
skabet at gmail.com
Tue Apr 7 07:00:41 PDT 2009
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.
- Anders
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pointerto.patch
Type: text/x-diff
Size: 1017 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090407/1589d60e/attachment.patch>
More information about the llvm-commits
mailing list