diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-11 09:56:20 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-11 09:56:20 +0000 |
commit | 7c57be3e2b6f3001cdb1e78b921f9e7ccc84f32c (patch) | |
tree | 78c4de58c0ef5727e68c34792646f069b2fde448 /llvm/lib/Target/TargetData.cpp | |
parent | dd8fc04e9bf9b5288bb73bcd0d2a1e079b5a0750 (diff) | |
download | bcm5719-llvm-7c57be3e2b6f3001cdb1e78b921f9e7ccc84f32c.tar.gz bcm5719-llvm-7c57be3e2b6f3001cdb1e78b921f9e7ccc84f32c.zip |
De-constify Types in StructType::get() and TargetData::getIntPtrType().
llvm-svn: 134893
Diffstat (limited to 'llvm/lib/Target/TargetData.cpp')
-rw-r--r-- | llvm/lib/Target/TargetData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetData.cpp b/llvm/lib/Target/TargetData.cpp index 6309a1572c5..b2c4b21f680 100644 --- a/llvm/lib/Target/TargetData.cpp +++ b/llvm/lib/Target/TargetData.cpp @@ -535,7 +535,7 @@ unsigned TargetData::getPreferredTypeAlignmentShift(const Type *Ty) const { /// getIntPtrType - Return an unsigned integer type that is the same size or /// greater to the host pointer size. -const IntegerType *TargetData::getIntPtrType(LLVMContext &C) const { +IntegerType *TargetData::getIntPtrType(LLVMContext &C) const { return IntegerType::get(C, getPointerSizeInBits()); } |