mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
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
This commit is contained in:
parent
05d5c9dc28
commit
4983cf7321
@ -540,18 +540,10 @@ namespace {
|
||||
|
||||
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
|
||||
Tracker->add(&*I);
|
||||
Tracker->print(std::cerr);
|
||||
delete Tracker;
|
||||
return false;
|
||||
}
|
||||
|
||||
/// print - Convert to human readable form
|
||||
virtual void print(std::ostream &OS, const Module* = 0) const {
|
||||
Tracker->print(OS);
|
||||
}
|
||||
|
||||
virtual void releaseMemory() {
|
||||
delete Tracker;
|
||||
}
|
||||
};
|
||||
RegisterPass<AliasSetPrinter> X("print-alias-sets", "Alias Set Printer",
|
||||
PassInfo::Analysis | PassInfo::Optimization);
|
||||
RegisterOpt<AliasSetPrinter> X("print-alias-sets", "Alias Set Printer");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user