mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 21:32:49 +00:00
Change TargetData::getIntPtrType() to return an IntegerType instead of
just a Type. llvm-svn: 71426
This commit is contained in:
parent
264cfd0017
commit
d8149f17c2
@ -23,13 +23,12 @@
|
||||
#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.
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user