Skip to content

Commit

Permalink
doxygenize argument accessors
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109950 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ggreif committed Jul 31, 2010
1 parent 0cd1ee2 commit 0114b99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/llvm/Instructions.h
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,12 @@ class CallInst : public Instruction {
# undef protected
public:

/// getNumArgOperands - Return the number of call arguments.
///
unsigned getNumArgOperands() const { return getNumOperands() - 1; }

/// getArgOperand/setArgOperand - Return/set the i-th call argument.
///
Value *getArgOperand(unsigned i) const { return getOperand(i); }
void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }

Expand Down Expand Up @@ -2460,7 +2465,12 @@ class InvokeInst : public TerminatorInst {
/// Provide fast operand accessors
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);

/// getNumArgOperands - Return the number of invoke arguments.
///
unsigned getNumArgOperands() const { return getNumOperands() - 3; }

/// getArgOperand/setArgOperand - Return/set the i-th invoke argument.
///
Value *getArgOperand(unsigned i) const { return getOperand(i); }
void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }

Expand Down

0 comments on commit 0114b99

Please sign in to comment.