aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-10 06:48:14 +0000
committerChris Lattner <sabre@nondot.org>2001-11-10 06:48:14 +0000
commit84b322eb170ee8c8dfc74aa33ac2107241a8f3e9 (patch)
tree08a05def8a303b2b488abbc73a81bbe1e800ee0d
parent32a966742286343dce2786a7dce4d3964f7a3a2c (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.h3
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;
};