summaryrefslogtreecommitdiff
path: root/include/llvm/Pass.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-29 21:01:19 +0000
committerChris Lattner <sabre@nondot.org>2002-07-29 21:01:19 +0000
commitf9b2297380d57d35c707864a9d55c1e00da39700 (patch)
treee1a32b2599c23558cf6a7bee4024b8142bb64513 /include/llvm/Pass.h
parente8e258b1a7e54a77c802e8b309d0a60a62d1a00d (diff)
downloadllvm-f9b2297380d57d35c707864a9d55c1e00da39700.tar.gz
llvm-f9b2297380d57d35c707864a9d55c1e00da39700.tar.bz2
llvm-f9b2297380d57d35c707864a9d55c1e00da39700.tar.xz
* Fix comment descriptions
* Remove defaulted argument to ctor that is never used anyway * Prevent copying and assignment git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r--include/llvm/Pass.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index 4f027a418d..0ff286a50d 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -46,18 +46,24 @@ typedef const PassInfo* AnalysisID;
class Pass {
friend class AnalysisResolver;
AnalysisResolver *Resolver; // AnalysisResolver this pass is owned by...
+ const PassInfo *PassInfoCache;
+ void operator=(const Pass&); // DO NOT IMPLEMENT
+ Pass(const Pass &); // DO NOT IMPLEMENT
public:
- Pass(AnalysisResolver *AR = 0) : Resolver(AR) {}
+ Pass() : Resolver(0), PassInfoCache(0) {}
virtual ~Pass() {} // Destructor is virtual so we can be subclassed
- // getPassName - Return a nice clean name for a pass. This should be
- // overloaded by the pass, but if it is not, C++ RTTI will be consulted to get
- // a SOMEWHAT intelligable name for the pass.
+ // getPassName - Return a nice clean name for a pass. This usually
+ // implemented in terms of the name that is registered by one of the
+ // Registration templates, but can be overloaded directly, and if nothing else
+ // is available, C++ RTTI will be consulted to get a SOMEWHAT intelligable
+ // name for the pass.
//
virtual const char *getPassName() const;
// getPassInfo - Return the PassInfo data structure that corresponds to this
- // pass...
+ // pass... If the pass has not been registered, this will return null.
+ //
const PassInfo *getPassInfo() const;
// run - Run this pass, returning true if a modification was made to the