[llvm-commits] CVS: llvm/include/llvm/Pass.h
Devang Patel
dpatel at apple.com
Fri Dec 8 15:52:19 PST 2006
Changes in directory llvm/include/llvm:
Pass.h updated: 1.56 -> 1.57
---
Log message:
Add AnalysisResolver_New.
---
Diffs of the changes: (+6 -1)
Pass.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Pass.h
diff -u llvm/include/llvm/Pass.h:1.56 llvm/include/llvm/Pass.h:1.57
--- llvm/include/llvm/Pass.h:1.56 Wed Dec 6 19:30:30 2006
+++ llvm/include/llvm/Pass.h Fri Dec 8 17:52:04 2006
@@ -50,6 +50,7 @@
class FunctionPassManagerT;
class ModulePassManager;
struct AnalysisResolver;
+class AnalysisResolver_New;
// AnalysisID - Use the PassInfo to identify a pass...
typedef const PassInfo* AnalysisID;
@@ -62,6 +63,7 @@
class Pass {
friend struct AnalysisResolver;
AnalysisResolver *Resolver; // AnalysisResolver this pass is owned by...
+ AnalysisResolver_New *Resolver_New; // Used to resolve analysis
const PassInfo *PassInfoCache;
// AnalysisImpls - This keeps track of which passes implement the interfaces
@@ -72,7 +74,7 @@
void operator=(const Pass&); // DO NOT IMPLEMENT
Pass(const Pass &); // DO NOT IMPLEMENT
public:
- Pass() : Resolver(0), PassInfoCache(0) {}
+ Pass() : Resolver(0), Resolver_New(0), PassInfoCache(0) {}
virtual ~Pass() {} // Destructor is virtual so we can be subclassed
/// getPassName - Return a nice clean name for a pass. This usually
@@ -107,6 +109,9 @@
virtual void print(std::ostream &O, const Module *M) const;
void dump() const; // dump - call print(std::cerr, 0);
+ // Access AnalysisResolver_New
+ inline void setResolver(AnalysisResolver_New *AR) { Resolver_New = AR; }
+ inline AnalysisResolver_New *getResolver() { return Resolver_New; }
/// getAnalysisUsage - This function should be overriden by passes that need
/// analysis information to do their job. If a pass specifies that it uses a
More information about the llvm-commits
mailing list