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 | 4983cf732164ab819ad5a422b766fce140767af4 (patch) | |
tree | 6aaa25779c9568711778c378d6b65619a7d580a1 /lib | |
parent | 05d5c9dc284275f13cde6aa6d1698d7ba83779dc (diff) | |
download | external_llvm-4983cf732164ab819ad5a422b766fce140767af4.zip external_llvm-4983cf732164ab819ad5a422b766fce140767af4.tar.gz external_llvm-4983cf732164ab819ad5a422b766fce140767af4.tar.bz2 |
Make the -print-alias-sets pass work for printing out something other than
the default aa impl results.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/AliasSetTracker.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/Analysis/AliasSetTracker.cpp b/lib/Analysis/AliasSetTracker.cpp index 9ae4044..3f6aa2c 100644 --- a/lib/Analysis/AliasSetTracker.cpp +++ b/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"); } |