[MC] Temporarily remove the deleted constructors, they break C++20 build
authorIlya Biryukov <ibiryukov@google.com>
Tue, 24 Jan 2023 10:36:46 +0000 (11:36 +0100)
committerIlya Biryukov <ibiryukov@google.com>
Tue, 24 Jan 2023 10:40:31 +0000 (11:40 +0100)
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.

llvm/include/llvm/MC/MCInstrDesc.h

index 15b0a69f8bd6528560bf07dd8290a3a785ef786b..3bba10501b68d401f1d4664bdcd985b4b246e34d 100644 (file)
@@ -197,13 +197,10 @@ enum Flag {
 /// 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)