mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Make getPointerTo return a const PointerType* rather than
an unqualified PointerType* because it seems more correct. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ad29b756e0
commit
83ed76869e
@ -430,7 +430,7 @@ public:
|
||||
|
||||
/// getPointerTo - Return a pointer to the current type. This is equivalent
|
||||
/// to PointerType::get(Foo, AddrSpace).
|
||||
PointerType *getPointerTo(unsigned AddrSpace = 0) const;
|
||||
const PointerType *getPointerTo(unsigned AddrSpace = 0) const;
|
||||
|
||||
private:
|
||||
/// isSizedDerivedType - Derived types like structures and arrays are sized
|
||||
|
@ -951,7 +951,7 @@ PointerType *PointerType::get(const Type *ValueType, unsigned AddressSpace) {
|
||||
return PT;
|
||||
}
|
||||
|
||||
PointerType *Type::getPointerTo(unsigned addrs) const {
|
||||
const PointerType *Type::getPointerTo(unsigned addrs) const {
|
||||
return PointerType::get(this, addrs);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user