summaryrefslogtreecommitdiff
path: root/include/llvm/Pass.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-09-17 07:16:40 +0000
committerCraig Topper <craig.topper@gmail.com>2012-09-17 07:16:40 +0000
commit9f9ce61972871efcf794bdc6125835c2c32cd863 (patch)
tree3a571d10c8a99938078411e7834b2f700f2e424c /include/llvm/Pass.h
parent001d3dc976d7cda8a3dd8c7fd4020b0b96033f4e (diff)
downloadllvm-9f9ce61972871efcf794bdc6125835c2c32cd863.tar.gz
llvm-9f9ce61972871efcf794bdc6125835c2c32cd863.tar.bz2
llvm-9f9ce61972871efcf794bdc6125835c2c32cd863.tar.xz
Mark unimplemented copy constructors and copy assignment operators as LLVM_DELETED_FUNCTION.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r--include/llvm/Pass.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index 888537daa4..cd651db1f1 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -29,6 +29,7 @@
#ifndef LLVM_PASS_H
#define LLVM_PASS_H
+#include "llvm/Support/Compiler.h"
#include <string>
namespace llvm {
@@ -82,8 +83,8 @@ class Pass {
AnalysisResolver *Resolver; // Used to resolve analysis
const void *PassID;
PassKind Kind;
- void operator=(const Pass&); // DO NOT IMPLEMENT
- Pass(const Pass &); // DO NOT IMPLEMENT
+ void operator=(const Pass&) LLVM_DELETED_FUNCTION;
+ Pass(const Pass &) LLVM_DELETED_FUNCTION;
public:
explicit Pass(PassKind K, char &pid) : Resolver(0), PassID(&pid), Kind(K) { }