Change TargetData::getIntPtrType() to return an IntegerType instead of
authorJay Foad <jay.foad@gmail.com>
Mon, 11 May 2009 11:13:47 +0000 (11:13 +0000)
committerJay Foad <jay.foad@gmail.com>
Mon, 11 May 2009 11:13:47 +0000 (11:13 +0000)
just a Type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71426 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 71236c021fee66d059134b1808dd444c0ec31ae3..9c8b1d3a2adbf0be4512874b18c541dfdae2e815 100644 (file)
 #include "llvm/Pass.h"
 #include "llvm/Support/DataTypes.h"
 #include "llvm/ADT/SmallVector.h"
+#include "llvm/DerivedTypes.h"
 #include <string>
 
 namespace llvm {
 
 class Value;
-class Type;
-class StructType;
 class StructLayout;
 class GlobalVariable;
 
@@ -228,7 +227,7 @@ public:
   /// getIntPtrType - Return an unsigned integer type that is the same size or
   /// greater to the host pointer size.
   ///
-  const Type *getIntPtrType() const;
+  const IntegerType *getIntPtrType() const;
 
   /// getIndexedOffset - return the offset from the beginning of the type for
   /// the specified indices.  This is used to implement getelementptr.
index 3ff1f0b20b123c1a5733177b6caf4013392a235d..67fefbb70b6af2fd52765df4958c809c1e6d03f9 100644 (file)
@@ -535,7 +535,7 @@ unsigned char 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 Type *TargetData::getIntPtrType() const {
+const IntegerType *TargetData::getIntPtrType() const {
   return IntegerType::get(getPointerSizeInBits());
 }