mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
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
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user