aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-06 23:13:31 +0000
committerOwen Anderson <resistor@mac.com>2007-07-06 23:13:31 +0000
commitc9edf0b69b8a2ca3f40b506af1726fd228391b30 (patch)
treebc80a2c1a365e54b9b73ddcdda780b2f9e610b1d
parent04367bfc20c021c4105abf0c33b86d55f782d1e8 (diff)
downloadexternal_llvm-c9edf0b69b8a2ca3f40b506af1726fd228391b30.zip
external_llvm-c9edf0b69b8a2ca3f40b506af1726fd228391b30.tar.gz
external_llvm-c9edf0b69b8a2ca3f40b506af1726fd228391b30.tar.bz2
Add some accessors to improve consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37957 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Instructions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index dc29b9a..b501b8e 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -191,6 +191,10 @@ public:
FreeInst(Value *Ptr, BasicBlock *InsertAfter);
virtual FreeInst *clone() const;
+
+ // Accessor methods for consistency with other memory operations
+ Value *getPointerOperand() { return getOperand(0); }
+ const Value *getPointerOperand() const { return getOperand(0); }
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const FreeInst *) { return true; }