[llvm-commits] [PATCH] TargetData::getIntPtrType() to return IntegerType
Chris Lattner
clattner at apple.com
Fri May 8 10:11:13 PDT 2009
On May 7, 2009, at 11:05 PM, Nick Lewycky wrote:
> Jay Foad wrote:
>> The attached patch lets me avoid some casts to IntegerType in some
>> code I'm working on. Thoughts? It passes regression tests and cfe and
>> llvm-gcc still build.
>>
>> It's a bit unfortunate that TargetData.h has to include
>> DerivedTypes.h, but otherwise this would break code like:
>>
>> const Type *Ty = TD->getIntPtrType();
>>
>> which now needs to know that IntegerType is derived from Type.
>
> Your patch looks good to me.
Me too, thanks Jay,
-Chris
More information about the llvm-commits
mailing list