aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/TargetData.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-11 09:56:20 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-11 09:56:20 +0000
commiteeb64ae6e52ac2a7980884fe89c01508014af6a9 (patch)
treed642ebabea7be19546d56ed183345831207df879 /lib/Target/TargetData.cpp
parentce3a9f51ce1b11143e94394906299c7640cf31b7 (diff)
downloadexternal_llvm-eeb64ae6e52ac2a7980884fe89c01508014af6a9.zip
external_llvm-eeb64ae6e52ac2a7980884fe89c01508014af6a9.tar.gz
external_llvm-eeb64ae6e52ac2a7980884fe89c01508014af6a9.tar.bz2
De-constify Types in StructType::get() and TargetData::getIntPtrType().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetData.cpp')
-rw-r--r--lib/Target/TargetData.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp
index 6309a15..b2c4b21 100644
--- a/lib/Target/TargetData.cpp
+++ b/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());
}