mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 04:45:00 +00:00
a hack to allow count-aa to work with ds-aa :(
llvm-svn: 20791
This commit is contained in:
parent
0fa70f79a6
commit
03631d6bc4
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user