mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 16:09:57 +00:00
add a helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6688d75114
commit
3bc6ced4c0
@ -531,6 +531,13 @@ public:
|
||||
static unsigned getPointerOperandIndex() {
|
||||
return 0U; // get index for modifying correct operand
|
||||
}
|
||||
|
||||
/// getPointerOperandType - Method to return the pointer operand as a
|
||||
/// PointerType.
|
||||
const PointerType *getPointerOperandType() const {
|
||||
return reinterpret_cast<const PointerType*>(getPointerOperand()->getType());
|
||||
}
|
||||
|
||||
|
||||
unsigned getNumIndices() const { // Note: always non-negative
|
||||
return getNumOperands() - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user