1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00

Express one of MachineOperand's many constructors in terms of another, by means of default arguments.

llvm-svn: 11343
This commit is contained in:
Brian Gaeke 2004-02-12 04:15:00 +00:00
parent 7d1652ca5c
commit 840e7e40fe

View File

@ -129,13 +129,7 @@ private:
int regNum; // register number for an explicit register
// will be set for a value after reg allocation
private:
MachineOperand()
: immedVal(0),
flags(0),
opType(MO_VirtualRegister),
regNum(-1) {}
MachineOperand(int64_t ImmVal, MachineOperandType OpTy)
MachineOperand(int64_t ImmVal = 0, MachineOperandType OpTy = MO_VirtualRegister)
: immedVal(ImmVal),
flags(0),
opType(OpTy),