[PATCH] D151695: [MC] Disable default copy ctor and copy assignment operator for CodeViewContext

Bing Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 01:31:28 PDT 2023


yubing created this revision.
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/D151695

Files:
  llvm/include/llvm/MC/MCCodeView.h


Index: llvm/include/llvm/MC/MCCodeView.h
===================================================================
--- llvm/include/llvm/MC/MCCodeView.h
+++ llvm/include/llvm/MC/MCCodeView.h
@@ -146,6 +146,9 @@
   CodeViewContext();
   ~CodeViewContext();
 
+  CodeViewContext &operator=(const CodeViewContext &other) = delete;
+  CodeViewContext(const CodeViewContext &other) = delete;
+
   bool isValidFileNumber(unsigned FileNumber) const;
   bool addFile(MCStreamer &OS, unsigned FileNumber, StringRef Filename,
                ArrayRef<uint8_t> ChecksumBytes, uint8_t ChecksumKind);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151695.526543.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230530/eab9c3e5/attachment.bin>


More information about the llvm-commits mailing list