[llvm] 8be0d8f - Revert "[AArch64] Make ArchInfo copyable again"

Tomas Matheson via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 4 03:00:45 PST 2022


Author: Tomas Matheson
Date: 2022-12-04T11:00:01Z
New Revision: 8be0d8fb83aa359caf0a7413c4a0fe49aef0dff1

URL: https://github.com/llvm/llvm-project/commit/8be0d8fb83aa359caf0a7413c4a0fe49aef0dff1
DIFF: https://github.com/llvm/llvm-project/commit/8be0d8fb83aa359caf0a7413c4a0fe49aef0dff1.diff

LOG: Revert "[AArch64] Make ArchInfo copyable again"

This reverts commit 6272f87ba06132a1b479068759d72178e5fe4472.

Added: 
    

Modified: 
    llvm/include/llvm/Support/AArch64TargetParser.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/AArch64TargetParser.h b/llvm/include/llvm/Support/AArch64TargetParser.h
index d7de0a47f7602..df560994a3503 100644
--- a/llvm/include/llvm/Support/AArch64TargetParser.h
+++ b/llvm/include/llvm/Support/AArch64TargetParser.h
@@ -114,6 +114,12 @@ struct ArchInfo {
   StringRef ArchFeature; // Command line feature flag, e.g. +v8a
   uint64_t DefaultExts;  // bitfield of default extensions ArchExtKind
 
+  // These are not intended to be copied or created outside of this file.
+  ArchInfo(const ArchInfo &) = delete;
+  ArchInfo(const ArchInfo &&) = delete;
+  ArchInfo &operator=(const ArchInfo &rhs) = delete;
+  ArchInfo &&operator=(const ArchInfo &&rhs) = delete;
+
   // Comparison is done by address. Copies should not exist.
   bool operator==(const ArchInfo &Other) const { return this == &Other; }
   bool operator!=(const ArchInfo &Other) const { return this != &Other; }


        


More information about the llvm-commits mailing list