mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-11 10:25:41 +00:00
Add some accessors to improve consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37957 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -191,6 +191,10 @@ public:
|
|||||||
FreeInst(Value *Ptr, BasicBlock *InsertAfter);
|
FreeInst(Value *Ptr, BasicBlock *InsertAfter);
|
||||||
|
|
||||||
virtual FreeInst *clone() const;
|
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:
|
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||||
static inline bool classof(const FreeInst *) { return true; }
|
static inline bool classof(const FreeInst *) { return true; }
|
||||||
|
Reference in New Issue
Block a user