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

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 4 06:35:21 PST 2022


Reminder to please always mention the reason for the revert in the
commit message.

On Sun, Dec 4, 2022 at 2:00 PM Tomas Matheson via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
>
>
> 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; }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits


More information about the llvm-commits mailing list