mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Add an function to BinaryOperator to swap the two operands
llvm-svn: 206
This commit is contained in:
parent
bf1ff2b205
commit
2c4346a9bd
@ -108,6 +108,11 @@ public:
|
||||
}
|
||||
|
||||
virtual const char *getOpcodeName() const = 0;
|
||||
|
||||
// swapOperands - Exchange the two operands to this instruction
|
||||
void swapOperands() {
|
||||
swap(Operands[0], Operands[1]);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user