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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19818 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2005-01-24 20:00:14 +00:00
parent d5af7c4df6
commit 851b534b89
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);
};