Author: resistor Date: Fri Jul 6 18:13:31 2007 New Revision: 37957 URL: http://llvm.org/viewvc/llvm-project?rev=37957&view=rev Log: Add some accessors to improve consistency.
Modified: llvm/trunk/include/llvm/Instructions.h Modified: llvm/trunk/include/llvm/Instructions.h URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Instructions.h?rev=37957&r1=37956&r2=37957&view=diff ============================================================================== --- llvm/trunk/include/llvm/Instructions.h (original) +++ llvm/trunk/include/llvm/Instructions.h Fri Jul 6 18:13:31 2007 @@ -191,6 +191,10 @@ 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; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits