From 804312786002b69b6b63ffce63c7074a254ccbb6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 6 Aug 2003 17:16:24 +0000 Subject: [PATCH] Remove unnecessary use of NonCopyable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7641 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/DataStructure/MemoryDepAnalysis.cpp | 9 ++++----- lib/Analysis/DataStructure/Parallelize.cpp | 7 +++---- lib/Analysis/IPA/MemoryDepAnalysis.cpp | 9 ++++----- lib/Transforms/IPO/Parallelize.cpp | 7 +++---- 4 files changed, 14 insertions(+), 18 deletions(-) diff --git a/lib/Analysis/DataStructure/MemoryDepAnalysis.cpp b/lib/Analysis/DataStructure/MemoryDepAnalysis.cpp index ef08a5ceb67..598bff9e39a 100644 --- a/lib/Analysis/DataStructure/MemoryDepAnalysis.cpp +++ b/lib/Analysis/DataStructure/MemoryDepAnalysis.cpp @@ -21,7 +21,6 @@ #include "llvm/Support/CFG.h" #include "Support/TarjanSCCIterator.h" #include "Support/Statistic.h" -#include "Support/NonCopyable.h" #include "Support/STLExtras.h" #include "Support/hash_map" #include "Support/hash_set" @@ -116,14 +115,14 @@ struct ModRefTable /// and all that use any node. ///-------------------------------------------------------------------------- -class ModRefInfoBuilder: public InstVisitor, - public NonCopyable -{ +class ModRefInfoBuilder : public InstVisitor { const DSGraph& funcGraph; const FunctionModRefInfo& funcModRef; ModRefTable& modRefTable; - ModRefInfoBuilder(); // do not implement + ModRefInfoBuilder(); // DO NOT IMPLEMENT + ModRefInfoBuilder(const ModRefInfoBuilder&); // DO NOT IMPLEMENT + void operator=(const ModRefInfoBuilder&); // DO NOT IMPLEMENT public: /*ctor*/ ModRefInfoBuilder(const DSGraph& _funcGraph, diff --git a/lib/Analysis/DataStructure/Parallelize.cpp b/lib/Analysis/DataStructure/Parallelize.cpp index 46fbcc7d855..81a525267cb 100644 --- a/lib/Analysis/DataStructure/Parallelize.cpp +++ b/lib/Analysis/DataStructure/Parallelize.cpp @@ -45,7 +45,6 @@ #include "llvm/DerivedTypes.h" #include "llvm/Support/InstVisitor.h" #include "llvm/Support/Cilkifier.h" -#include "Support/NonCopyable.h" #include "Support/Statistic.h" #include "Support/STLExtras.h" #include "Support/hash_set" @@ -280,9 +279,7 @@ void Cilkifier::visitCallInst(CallInst& CI) // useful parallelism. //---------------------------------------------------------------------------- -class FindParallelCalls: public InstVisitor, - public NonCopyable -{ +class FindParallelCalls : public InstVisitor { typedef hash_set DependentsSet; typedef DependentsSet::iterator Dependents_iterator; typedef DependentsSet::const_iterator Dependents_const_iterator; @@ -296,6 +293,8 @@ class FindParallelCalls: public InstVisitor, CallInst* root, DependentsSet& depsOfRoot); + FindParallelCalls(const FindParallelCalls &); // DO NOT IMPLEMENT + void operator=(const FindParallelCalls&); // DO NOT IMPLEMENT public: std::vector parallelCalls; diff --git a/lib/Analysis/IPA/MemoryDepAnalysis.cpp b/lib/Analysis/IPA/MemoryDepAnalysis.cpp index ef08a5ceb67..598bff9e39a 100644 --- a/lib/Analysis/IPA/MemoryDepAnalysis.cpp +++ b/lib/Analysis/IPA/MemoryDepAnalysis.cpp @@ -21,7 +21,6 @@ #include "llvm/Support/CFG.h" #include "Support/TarjanSCCIterator.h" #include "Support/Statistic.h" -#include "Support/NonCopyable.h" #include "Support/STLExtras.h" #include "Support/hash_map" #include "Support/hash_set" @@ -116,14 +115,14 @@ struct ModRefTable /// and all that use any node. ///-------------------------------------------------------------------------- -class ModRefInfoBuilder: public InstVisitor, - public NonCopyable -{ +class ModRefInfoBuilder : public InstVisitor { const DSGraph& funcGraph; const FunctionModRefInfo& funcModRef; ModRefTable& modRefTable; - ModRefInfoBuilder(); // do not implement + ModRefInfoBuilder(); // DO NOT IMPLEMENT + ModRefInfoBuilder(const ModRefInfoBuilder&); // DO NOT IMPLEMENT + void operator=(const ModRefInfoBuilder&); // DO NOT IMPLEMENT public: /*ctor*/ ModRefInfoBuilder(const DSGraph& _funcGraph, diff --git a/lib/Transforms/IPO/Parallelize.cpp b/lib/Transforms/IPO/Parallelize.cpp index 46fbcc7d855..81a525267cb 100644 --- a/lib/Transforms/IPO/Parallelize.cpp +++ b/lib/Transforms/IPO/Parallelize.cpp @@ -45,7 +45,6 @@ #include "llvm/DerivedTypes.h" #include "llvm/Support/InstVisitor.h" #include "llvm/Support/Cilkifier.h" -#include "Support/NonCopyable.h" #include "Support/Statistic.h" #include "Support/STLExtras.h" #include "Support/hash_set" @@ -280,9 +279,7 @@ void Cilkifier::visitCallInst(CallInst& CI) // useful parallelism. //---------------------------------------------------------------------------- -class FindParallelCalls: public InstVisitor, - public NonCopyable -{ +class FindParallelCalls : public InstVisitor { typedef hash_set DependentsSet; typedef DependentsSet::iterator Dependents_iterator; typedef DependentsSet::const_iterator Dependents_const_iterator; @@ -296,6 +293,8 @@ class FindParallelCalls: public InstVisitor, CallInst* root, DependentsSet& depsOfRoot); + FindParallelCalls(const FindParallelCalls &); // DO NOT IMPLEMENT + void operator=(const FindParallelCalls&); // DO NOT IMPLEMENT public: std::vector parallelCalls;