[llvm-commits] CVS: llvm/lib/Analysis/AliasSetTracker.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 2 22:05:33 PST 2006
Changes in directory llvm/lib/Analysis:
AliasSetTracker.cpp updated: 1.36 -> 1.37
---
Log message:
Make the -print-alias-sets pass work for printing out something other than
the default aa impl results.
---
Diffs of the changes: (+3 -11)
AliasSetTracker.cpp | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
Index: llvm/lib/Analysis/AliasSetTracker.cpp
diff -u llvm/lib/Analysis/AliasSetTracker.cpp:1.36 llvm/lib/Analysis/AliasSetTracker.cpp:1.37
--- llvm/lib/Analysis/AliasSetTracker.cpp:1.36 Thu Apr 21 16:04:58 2005
+++ llvm/lib/Analysis/AliasSetTracker.cpp Tue Jan 3 00:05:22 2006
@@ -540,18 +540,10 @@
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
Tracker->add(&*I);
- return false;
- }
-
- /// print - Convert to human readable form
- virtual void print(std::ostream &OS, const Module* = 0) const {
- Tracker->print(OS);
- }
-
- virtual void releaseMemory() {
+ Tracker->print(std::cerr);
delete Tracker;
+ return false;
}
};
- RegisterPass<AliasSetPrinter> X("print-alias-sets", "Alias Set Printer",
- PassInfo::Analysis | PassInfo::Optimization);
+ RegisterOpt<AliasSetPrinter> X("print-alias-sets", "Alias Set Printer");
}
More information about the llvm-commits
mailing list