summaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 2c1313afbe..5a867045af 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -389,16 +389,10 @@ public:
static PointerType *getInt32PtrTy(LLVMContext &C, unsigned AS = 0);
static PointerType *getInt64PtrTy(LLVMContext &C, unsigned AS = 0);
- /// getPointerTo - Return a pointer to the current type for the given address space.
- /// This is equivalent to PointerType::get(Foo, AddrSpace).
- PointerType *getPointerTo(unsigned AddrSpace);
+ /// getPointerTo - Return a pointer to the current type. This is equivalent
+ /// to PointerType::get(Foo, AddrSpace).
+ PointerType *getPointerTo(unsigned AddrSpace = 0);
- /// getPointerTo - Return a pointer to the current type for the address space
- /// space of the passed in type.
- PointerType *getPointerTo(const Type *Ty);
-
- /// getPointerTo - Retrun a pointer to the current type.
- PointerType *getPointerTo();
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