mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Add a new "addOperand" method to User.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3590830cef
commit
cbab0f7edd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user