[llvm-commits] [llvm] r37957 - /llvm/trunk/include/llvm/Instructions.h
Owen Anderson
resistor at mac.com
Fri Jul 6 16:13:31 PDT 2007
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; }
More information about the llvm-commits
mailing list