diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-08 18:38:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-08 18:38:18 +0000 |
commit | cbab0f7eddff0bee5ebb719b8628e706de016a40 (patch) | |
tree | 519789ab4f9e266f76452ed6101a93e76ffbc862 | |
parent | 3590830cef7fcc4da262d3f3c329fae44c589374 (diff) |
Add a new "addOperand" method to User.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/User.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/User.h b/include/llvm/User.h index 0305c27816..a617f12b0a 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -64,6 +64,16 @@ public: // references to the "To" definition. (defined in Value.cpp) // void replaceUsesOfWith(Value *From, Value *To); + + // addOperand - This is a special purpose API that should not be used in most + // cases. It adds an empty (null) operand to the instruction specified. This + // is currently used by the back end as part of the "lowering" process... most + // optimizations will not handle instructions that are not in their normal + // form, so this method should be used with care. + // + void addOperand() { + Operands.push_back(Use(0, this)); + } }; #endif |