mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Added CreateFrameIndex to create a FrameIndex MachineOperand without a MachineInstr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2f39426ec9
commit
42a0f9a4fb
@ -102,6 +102,18 @@ public:
|
||||
return Op;
|
||||
}
|
||||
|
||||
static MachineOperand CreateFrameIndex(unsigned Idx) {
|
||||
MachineOperand Op;
|
||||
Op.opType = MachineOperand::MO_FrameIndex;
|
||||
Op.contents.immedVal = Idx;
|
||||
Op.IsDef = false;
|
||||
Op.IsImp = false;
|
||||
Op.IsKill = false;
|
||||
Op.IsDead = false;
|
||||
Op.auxInfo.offset = 0;
|
||||
return Op;
|
||||
}
|
||||
|
||||
const MachineOperand &operator=(const MachineOperand &MO) {
|
||||
contents = MO.contents;
|
||||
IsDef = MO.IsDef;
|
||||
|
Loading…
Reference in New Issue
Block a user