diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-10 06:48:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-10 06:48:14 +0000 |
commit | 84b322eb170ee8c8dfc74aa33ac2107241a8f3e9 (patch) | |
tree | 08a05def8a303b2b488abbc73a81bbe1e800ee0d | |
parent | 32a966742286343dce2786a7dce4d3964f7a3a2c (diff) |
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
-rw-r--r-- | include/llvm/iMemory.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h index f3ec30281d..29518686cf 100644 --- a/include/llvm/iMemory.h +++ b/include/llvm/iMemory.h @@ -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; }; |