diff options
| author | Gabor Greif <ggreif@gmail.com> | 2010-07-31 08:35:21 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2010-07-31 08:35:21 +0000 |
| commit | ecb03610f9d75ada23f9b52a6dd2ab7721b59925 (patch) | |
| tree | d138ad1d63f0abf33ddfd1d9c6fb9cea67274faf | |
| parent | c15eb25818016ed1704d99140c6ee5084bfb280d (diff) | |
| download | external_llvm-ecb03610f9d75ada23f9b52a6dd2ab7721b59925.zip external_llvm-ecb03610f9d75ada23f9b52a6dd2ab7721b59925.tar.gz external_llvm-ecb03610f9d75ada23f9b52a6dd2ab7721b59925.tar.bz2 | |
doxygenize argument accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109950 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | include/llvm/Instructions.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 273c995..b4c88ca 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); } |
