Make -ds-aa more useful, allowing it to be updated as xforms hack on the program.

llvm-svn: 19818
This commit is contained in:
Chris Lattner
2005-01-24 20:00:14 +00:00
parent d64fafd937
commit 2e2edef9c6
3 changed files with 119 additions and 0 deletions

View File

@@ -61,6 +61,17 @@ namespace {
return AliasAnalysis::getModRefInfo(CS1,CS2);
}
virtual void deleteValue(Value *V) {
BU->deleteValue(V);
TD->deleteValue(V);
}
virtual void copyValue(Value *From, Value *To) {
if (From == To) return;
BU->copyValue(From, To);
TD->copyValue(From, To);
}
private:
DSGraph *getGraphForValue(const Value *V);
};