forked from OSchip/llvm-project
Change TargetData::getIntPtrType() to return an IntegerType instead of
just a Type. llvm-svn: 71426
This commit is contained in:
parent
ea5a8d8808
commit
ada3549ae1
|
|
@ -23,13 +23,12 @@
|
||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
#include "llvm/Support/DataTypes.h"
|
#include "llvm/Support/DataTypes.h"
|
||||||
#include "llvm/ADT/SmallVector.h"
|
#include "llvm/ADT/SmallVector.h"
|
||||||
|
#include "llvm/DerivedTypes.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
class Value;
|
class Value;
|
||||||
class Type;
|
|
||||||
class StructType;
|
|
||||||
class StructLayout;
|
class StructLayout;
|
||||||
class GlobalVariable;
|
class GlobalVariable;
|
||||||
|
|
||||||
|
|
@ -228,7 +227,7 @@ public:
|
||||||
/// getIntPtrType - Return an unsigned integer type that is the same size or
|
/// getIntPtrType - Return an unsigned integer type that is the same size or
|
||||||
/// greater to the host pointer size.
|
/// 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
|
/// getIndexedOffset - return the offset from the beginning of the type for
|
||||||
/// the specified indices. This is used to implement getelementptr.
|
/// the specified indices. This is used to implement getelementptr.
|
||||||
|
|
|
||||||
|
|
@ -535,7 +535,7 @@ unsigned char TargetData::getPreferredTypeAlignmentShift(const Type *Ty) const {
|
||||||
|
|
||||||
/// getIntPtrType - Return an unsigned integer type that is the same size or
|
/// getIntPtrType - Return an unsigned integer type that is the same size or
|
||||||
/// greater to the host pointer size.
|
/// greater to the host pointer size.
|
||||||
const Type *TargetData::getIntPtrType() const {
|
const IntegerType *TargetData::getIntPtrType() const {
|
||||||
return IntegerType::get(getPointerSizeInBits());
|
return IntegerType::get(getPointerSizeInBits());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue