[llvm-commits] CVS: llvm/include/llvm/Analysis/DataStructure.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Feb 3 16:52:02 PST 2003
Changes in directory llvm/include/llvm/Analysis:
DataStructure.h updated: 1.61 -> 1.62
---
Log message:
Hack to work around deficiency in pass infrastructure
---
Diffs of the changes:
Index: llvm/include/llvm/Analysis/DataStructure.h
diff -u llvm/include/llvm/Analysis/DataStructure.h:1.61 llvm/include/llvm/Analysis/DataStructure.h:1.62
--- llvm/include/llvm/Analysis/DataStructure.h:1.61 Fri Jan 31 22:51:53 2003
+++ llvm/include/llvm/Analysis/DataStructure.h Mon Feb 3 16:51:26 2003
@@ -136,7 +136,7 @@
hash_set<const Function*> GraphDone;
DSGraph *GlobalsGraph;
public:
- ~TDDataStructures() { releaseMemory(); }
+ ~TDDataStructures() { releaseMyMemory(); }
virtual bool run(Module &M);
@@ -157,13 +157,14 @@
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);
More information about the llvm-commits
mailing list