mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Teach Type::getPointerAddressSpace to look through pointer vectors
politely and document this feature. This simple API extension then allows us to write all of the Instructions' address space query methods much more simply. No functionality change intended here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -346,8 +346,10 @@ public:
|
||||
unsigned getVectorNumElements() const;
|
||||
Type *getVectorElementType() const { return getSequentialElementType(); }
|
||||
|
||||
unsigned getPointerAddressSpace() const;
|
||||
Type *getPointerElementType() const { return getSequentialElementType(); }
|
||||
|
||||
/// \brief Get the address space of this pointer or pointer vector type.
|
||||
unsigned getPointerAddressSpace() const;
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Static members exported by the Type class itself. Useful for getting
|
||||
|
Reference in New Issue
Block a user