mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
add builder support for mcsymbol operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72aaa3c798
commit
3889fac428
@ -131,6 +131,11 @@ public:
|
|||||||
MI->addOperand(MachineOperand::CreateMetadata(MD));
|
MI->addOperand(MachineOperand::CreateMetadata(MD));
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const MachineInstrBuilder &addSym(MCSymbol *Sym) const {
|
||||||
|
MI->addOperand(MachineOperand::CreateMCSymbol(Sym));
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// BuildMI - Builder interface. Specify how to create the initial instruction
|
/// BuildMI - Builder interface. Specify how to create the initial instruction
|
||||||
|
Loading…
Reference in New Issue
Block a user