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:
Chris Lattner 2001-11-10 06:48:14 +00:00
parent 32a9667422
commit 84b322eb17

View File

@ -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;
};