diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-01-03 06:05:22 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-01-03 06:05:22 +0000 |
| commit | 44497859f95f9680dc9d546385fea43771356099 (patch) | |
| tree | 098ff0056ca6e97c5dd14c4e1914105d92bf6488 /llvm/lib/Analysis/AliasSetTracker.cpp | |
| parent | 2e6f448d0f8f9c7b30fdd2c909da3b3f188fe24d (diff) | |
| download | bcm5719-llvm-44497859f95f9680dc9d546385fea43771356099.tar.gz bcm5719-llvm-44497859f95f9680dc9d546385fea43771356099.zip | |
Make the -print-alias-sets pass work for printing out something other than
the default aa impl results.
llvm-svn: 25062
Diffstat (limited to 'llvm/lib/Analysis/AliasSetTracker.cpp')
| -rw-r--r-- | llvm/lib/Analysis/AliasSetTracker.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index 9ae4044b0e0..3f6aa2c9b9f 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/lib/Analysis/AliasSetTracker.cpp @@ -540,18 +540,10 @@ namespace { 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"); } |

