From: Vikram S. Adve Date: Thu, 22 Aug 2002 03:01:44 +0000 (+0000) Subject: Add method copyOperands(). X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cab1a52aa261e0eae7a0243732f742bae2c8c587;p=oota-llvm.git Add method copyOperands(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3445 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/User.h b/include/llvm/User.h index e78d21bbca0..c2f0781aa6f 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 copyOperands() const { + return std::vector(op_begin(), op_end()); + } + // --------------------------------------------------------------------------- // Operand Iterator interface... //