mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 23:19:37 +00:00
Express one of MachineOperand's many constructors in terms of another, by means of default arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17247c64f2
commit
56aa531f93
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user