mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-06 03:19:50 +00:00
Add a new Type::getPointerTo method, which is shorthand for
llvm::PointerType::get(). Patch by Anders Johnsen! llvm-svn: 68772
This commit is contained in:
parent
0f4dbe06e7
commit
af0fd068e1
@ -364,6 +364,10 @@ public:
|
||||
///
|
||||
void removeAbstractTypeUser(AbstractTypeUser *U) const;
|
||||
|
||||
/// getPointerTo - Return a pointer to the current type. This is equivalent
|
||||
/// to PointerType::get(Foo, AddrSpace).
|
||||
PointerType *getPointerTo(unsigned AddrSpace = 0) const;
|
||||
|
||||
private:
|
||||
/// isSizedDerivedType - Derived types like structures and arrays are sized
|
||||
/// iff all of the members of the type are sized as well. Since asking for
|
||||
|
@ -1214,6 +1214,10 @@ PointerType *PointerType::get(const Type *ValueType, unsigned AddressSpace) {
|
||||
return PT;
|
||||
}
|
||||
|
||||
PointerType *Type::getPointerTo(unsigned addrs) const {
|
||||
return PointerType::get(this, addrs);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Derived Type Refinement Functions
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user