[PATCH] D152239: [CodeGen] Disable default copy ctor and copy assignment operator for VLIWResourceModel

Bing Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 00:07:25 PDT 2023


yubing created this revision.
Herald added subscribers: javed.absar, MatzeB.
Herald added a project: All.
yubing requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152239

Files:
  llvm/include/llvm/CodeGen/VLIWMachineScheduler.h


Index: llvm/include/llvm/CodeGen/VLIWMachineScheduler.h
===================================================================
--- llvm/include/llvm/CodeGen/VLIWMachineScheduler.h
+++ llvm/include/llvm/CodeGen/VLIWMachineScheduler.h
@@ -48,7 +48,8 @@
 
 public:
   VLIWResourceModel(const TargetSubtargetInfo &STI, const TargetSchedModel *SM);
-
+  VLIWResourceModel &operator=(const VLIWResourceModel &other) = delete;
+  VLIWResourceModel(const VLIWResourceModel &other) = delete;
   virtual ~VLIWResourceModel();
 
   virtual void reset();


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152239.528718.patch
Type: text/x-patch
Size: 540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230606/75de37f4/attachment.bin>


More information about the llvm-commits mailing list