Add some accessors to improve consistency.

llvm-svn: 37957
This commit is contained in:
Owen Anderson 2007-07-06 23:13:31 +00:00
parent a54634adef
commit 81f07478b4
1 changed files with 4 additions and 0 deletions

View File

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