Remove IntegerType constness from TargetData
authorTobias Grosser <grosser@fim.uni-passau.de>
Tue, 12 Jul 2011 11:36:58 +0000 (11:36 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Tue, 12 Jul 2011 11:36:58 +0000 (11:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134978 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetData.h
lib/Target/TargetData.cpp

index 32e3e2b0b61735792715cffb121de2e8f5cd963a..10252865c966cddf02f0ee835e5599bdf988ed29 100644 (file)
@@ -259,7 +259,7 @@ public:
   /// getIntPtrType - Return an unsigned integer type that is the same size or
   /// greater to the host pointer size.
   ///
-  const IntegerType *getIntPtrType(LLVMContext &C) const;
+  IntegerType *getIntPtrType(LLVMContext &C) const;
 
   /// getIndexedOffset - return the offset from the beginning of the type for
   /// the specified indices.  This is used to implement getelementptr.
index 6309a1572c5c3a8a20103ac170f8708d4fd77e84..b2c4b21f680daa23ec33e756b0bee4adbf6e2098 100644 (file)
@@ -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());
 }