diff options
author | Chris Lattner <sabre@nondot.org> | 2004-09-20 04:48:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-09-20 04:48:05 +0000 |
commit | b12914bfc0f76a7a48357162d5f4c39a1343e69b (patch) | |
tree | 00bff0412482165a6d7d60775e4aeb6ebe3b4628 /include/llvm/Analysis/DataStructure/DataStructure.h | |
parent | bba61c07ddca19f72b13dd5a410358d296ed1d6a (diff) |
'Pass' should now not be derived from by clients. Instead, they should derive
from ModulePass. Instead of implementing Pass::run, then should implement
ModulePass::runOnModule.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DataStructure.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DataStructure.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index 9351ed4c98..34575a2db8 100644 --- a/include/llvm/Analysis/DataStructure/DataStructure.h +++ b/include/llvm/Analysis/DataStructure/DataStructure.h @@ -40,14 +40,14 @@ namespace DataStructureAnalysis { // FIXME: This should be a Function pass that can be USED by a Pass, and would // be automatically preserved. Until we can do that, this is a Pass. // -class LocalDataStructures : public Pass { +class LocalDataStructures : public ModulePass { // DSInfo, one graph for each function hash_map<Function*, DSGraph*> DSInfo; DSGraph *GlobalsGraph; public: ~LocalDataStructures() { releaseMemory(); } - virtual bool run(Module &M); + virtual bool runOnModule(Module &M); bool hasGraph(const Function &F) const { return DSInfo.find(const_cast<Function*>(&F)) != DSInfo.end(); @@ -86,7 +86,7 @@ public: /// data structure graphs for all of the functions in the program. This pass /// only performs a "Bottom Up" propagation (hence the name). /// -class BUDataStructures : public Pass { +class BUDataStructures : public ModulePass { protected: // DSInfo, one graph for each function hash_map<Function*, DSGraph*> DSInfo; @@ -95,7 +95,7 @@ protected: public: ~BUDataStructures() { releaseMemory(); } - virtual bool run(Module &M); + virtual bool runOnModule(Module &M); bool hasGraph(const Function &F) const { return DSInfo.find(const_cast<Function*>(&F)) != DSInfo.end(); @@ -149,7 +149,7 @@ private: /// for each function using the closed graphs for the callers computed /// by the bottom-up pass. /// -class TDDataStructures : public Pass { +class TDDataStructures : public ModulePass { // DSInfo, one graph for each function hash_map<Function*, DSGraph*> DSInfo; hash_set<Function*> ArgsRemainIncomplete; @@ -157,7 +157,7 @@ class TDDataStructures : public Pass { public: ~TDDataStructures() { releaseMyMemory(); } - virtual bool run(Module &M); + virtual bool runOnModule(Module &M); bool hasGraph(const Function &F) const { return DSInfo.find(const_cast<Function*>(&F)) != DSInfo.end(); @@ -207,7 +207,7 @@ private: /// allocation. /// struct CompleteBUDataStructures : public BUDataStructures { - virtual bool run(Module &M); + virtual bool runOnModule(Module &M); bool hasGraph(const Function &F) const { return DSInfo.find(const_cast<Function*>(&F)) != DSInfo.end(); |