1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Add a hook to allow the datastructure to keep naturally up to date, even

though it's not entirely fleshed out.

llvm-svn: 2051
This commit is contained in:
Chris Lattner 2002-03-29 21:23:29 +00:00
parent c7df07c3f8
commit 289f7690fe

View File

@ -437,6 +437,19 @@ public:
return *N.second;
}
// invalidateFunction - Inform this analysis that you changed the specified
// function, so the graphs that depend on it are out of date.
//
void invalidateFunction(Function *F) const {
// FIXME: THis should invalidate all functions who have inlined the
// specified graph!
//
std::pair<FunctionDSGraph*, FunctionDSGraph*> &N = DSInfo[F];
delete N.first;
delete N.second;
N.first = N.second = 0;
}
// print - Print out the analysis results...
void print(std::ostream &O, Module *M) const;