a hack to allow count-aa to work with ds-aa :(
authorChris Lattner <sabre@nondot.org>
Wed, 23 Mar 2005 21:59:34 +0000 (21:59 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Mar 2005 21:59:34 +0000 (21:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20791 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure/DataStructure.h
lib/Analysis/DataStructure/BottomUpClosure.cpp

index a12467eb99b87a883e49964f7771ca6cf530565b..d2331e1bbd5d14d36e6bff48bc45be4418498ac2 100644 (file)
@@ -112,7 +112,7 @@ protected:
   /// with other global values in the DSGraphs.
   EquivalenceClasses<GlobalValue*> GlobalECs;
 public:
-  ~BUDataStructures() { releaseMemory(); }
+  ~BUDataStructures() { releaseMyMemory(); }
 
   virtual bool runOnModule(Module &M);
 
@@ -143,10 +143,9 @@ public:
   ///
   void print(std::ostream &O, const Module *M) const;
 
-  /// releaseMemory - if the pass pipeline is done with this pass, we can
-  /// release our memory...
-  ///
-  virtual void releaseMemory();
+  // FIXME: Once the pass manager is straightened out, rename this to
+  // releaseMemory.
+  void releaseMyMemory();
 
   virtual void getAnalysisUsage(AnalysisUsage &AU) const {
     AU.setPreservesAll();
index 47ffc87cc7d5ed31d035dd2792a6fb930ac11808..640463db301749647b719e5b69d5b0959974478c 100644 (file)
@@ -305,7 +305,7 @@ unsigned BUDataStructures::calculateGraphs(Function *F,
 // releaseMemory - If the pass pipeline is done with this pass, we can release
 // our memory... here...
 //
-void BUDataStructures::releaseMemory() {
+void BUDataStructures::releaseMyMemory() {
   for (hash_map<Function*, DSGraph*>::iterator I = DSInfo.begin(),
          E = DSInfo.end(); I != E; ++I) {
     I->second->getReturnNodes().erase(I->first);