diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-08-22 03:01:44 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-08-22 03:01:44 +0000 |
commit | cab1a52aa261e0eae7a0243732f742bae2c8c587 (patch) | |
tree | 59ba0afdfe903d0ad101bf57ccc39eb3fe0490c4 /include/llvm/User.h | |
parent | da920aa55bcc779aef1dd3fa6e7e29c99b4e03c7 (diff) | |
download | external_llvm-cab1a52aa261e0eae7a0243732f742bae2c8c587.zip external_llvm-cab1a52aa261e0eae7a0243732f742bae2c8c587.tar.gz external_llvm-cab1a52aa261e0eae7a0243732f742bae2c8c587.tar.bz2 |
Add method copyOperands().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/User.h')
-rw-r--r-- | include/llvm/User.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h index e78d21b..c2f0781 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -36,6 +36,10 @@ public: } inline unsigned getNumOperands() const { return Operands.size(); } + inline std::vector<Value*> copyOperands() const { + return std::vector<Value*>(op_begin(), op_end()); + } + // --------------------------------------------------------------------------- // Operand Iterator interface... // |