[CodeGen] Disable default copy ctor and copy assignment operator for VLIWResourceModel
authorBing1 Yu <bing1.yu@intel.com>
Wed, 7 Jun 2023 06:26:37 +0000 (14:26 +0800)
committerBing1 Yu <bing1.yu@intel.com>
Wed, 7 Jun 2023 06:27:03 +0000 (14:27 +0800)
Reviewed By: JamesNagurne

Differential Revision: https://reviews.llvm.org/D152239

llvm/include/llvm/CodeGen/VLIWMachineScheduler.h

index 50c8806..74f2caa 100644 (file)
@@ -48,7 +48,8 @@ protected:
 
 public:
   VLIWResourceModel(const TargetSubtargetInfo &STI, const TargetSchedModel *SM);
-
+  VLIWResourceModel &operator=(const VLIWResourceModel &other) = delete;
+  VLIWResourceModel(const VLIWResourceModel &other) = delete;
   virtual ~VLIWResourceModel();
 
   virtual void reset();