diff options
author | Chris Lattner <sabre@nondot.org> | 2003-02-03 22:51:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-02-03 22:51:28 +0000 |
commit | 4923d1be916826cd90bf092d9aafdb6df80e97b2 (patch) | |
tree | 0553b010495b32980f539232683c866d07a9b34d /include/llvm/Analysis/DataStructure.h | |
parent | 8105cfbed0b4e51b6d7d62ad3e84885e27451cf3 (diff) |
Hack to work around deficiency in pass infrastructure
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index ddaf83a459..ebcc3c5c64 100644 --- a/include/llvm/Analysis/DataStructure.h +++ b/include/llvm/Analysis/DataStructure.h @@ -136,7 +136,7 @@ class TDDataStructures : public Pass { hash_set<const Function*> GraphDone; DSGraph *GlobalsGraph; public: - ~TDDataStructures() { releaseMemory(); } + ~TDDataStructures() { releaseMyMemory(); } virtual bool run(Module &M); @@ -157,13 +157,14 @@ public: void print(std::ostream &O, const Module *M) const; // If the pass pipeline is done with this pass, we can release our memory... - virtual void releaseMemory(); + virtual void releaseMyMemory(); // getAnalysisUsage - This obviously provides a data structure graph. virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); AU.addRequired<BUDataStructures>(); } + private: void calculateGraph(Function &F); DSGraph &getOrCreateDSGraph(Function &F); |