From 8238def2a8c579311527c2dc8f51c0d9c6dbfb38 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Thu, 28 Jun 2018 17:33:24 +0000 Subject: [PATCH] [llvm-mca] Delete Pipeline's copy ctor and assignement operator. Prevent copying of the Pipeline. llvm-svn: 335885 --- llvm/tools/llvm-mca/Pipeline.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/tools/llvm-mca/Pipeline.h b/llvm/tools/llvm-mca/Pipeline.h index 399d89e51450..660c431a4767 100644 --- a/llvm/tools/llvm-mca/Pipeline.h +++ b/llvm/tools/llvm-mca/Pipeline.h @@ -51,6 +51,9 @@ class HWStallEvent; /// histograms. For example, it tracks how the dispatch group size changes /// over time. class Pipeline { + Pipeline(const Pipeline &P) = delete; + Pipeline &operator=(const Pipeline &P) = delete; + /// An ordered list of stages that define this instruction pipeline. llvm::SmallVector, 8> Stages; std::set Listeners;