This helps to unblock our internal integrate that now relies on C++20
configuration. I will follow up with a proposal to re-enable the deleted
constructors soon, but it is a bit involved to avoid increasing the
sizes of struct.
/// directly to describe itself.
class MCInstrDesc {
public:
+ // FIXME: Disable copies and moves.
// Do not allow MCInstrDescs to be copied or moved. They should only exist in
// the <Target>Insts table because they rely on knowing their own address to
// find other information elsewhere in the same table.
- MCInstrDesc(const MCInstrDesc &) = delete;
- MCInstrDesc(MCInstrDesc &&) = delete;
- MCInstrDesc &operator=(const MCInstrDesc &) = delete;
- MCInstrDesc &operator=(MCInstrDesc &&) = delete;
unsigned short Opcode; // The opcode number
unsigned short NumOperands; // Num of args (may be more if variable_ops)