diff options
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... // |