Add a new "addOperand" method to User.

llvm-svn: 158
This commit is contained in:
Chris Lattner 2001-07-08 18:38:18 +00:00
parent 1547114cbf
commit b418152221

View File

@ -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