From 0114b9990ae11d49356513e781a375803df95208 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Sat, 31 Jul 2010 08:35:21 +0000 Subject: [PATCH] doxygenize argument accessors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109950 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instructions.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 273c9951c62..b4c88ca8d24 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -964,7 +964,12 @@ public: # 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); } @@ -2460,7 +2465,12 @@ public: /// 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); } -- 2.34.1