[llvm-commits] [PATCH] Add IRBuilderBase::getIntPtrTy
Chandler Carruth
chandlerc at gmail.com
Wed Oct 31 01:39:25 PDT 2012
Tiny simplification, but otherwise awesome.
Could you add a unittest for this API, mostly to make sure it compiles cleanly?
================
Comment at: llvm/include/llvm/IRBuilder.h:271
@@ +270,3 @@
+ IntegerType* getIntPtrTy(DataLayout *DL, unsigned AddrSpace = 0) {
+ return Type::getIntNTy(Context, DL->getPointerSizeInBits(AddrSpace));
+ }
----------------
return DL->getIntPtrType(Context, AddrSpace);
http://llvm-reviews.chandlerc.com/D90
More information about the llvm-commits
mailing list