mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 01:38:26 +00:00
Provide const version of function with the name the other will be eventually renamed to
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1241 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
32a9667422
commit
84b322eb17
@ -187,6 +187,9 @@ public:
|
||||
inline bool hasIndices() const { return !indexVec.empty(); }
|
||||
|
||||
virtual Value *getPtrOperand() = 0;
|
||||
const Value *getPointerOperand() const {
|
||||
return ((MemAccessInst*)this)->getPtrOperand();
|
||||
}
|
||||
|
||||
virtual int getFirstOffsetIdx() const = 0;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user