diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-27 01:12:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-27 01:12:17 +0000 |
commit | 2675007573b820d1c084afe560105ab8a622d942 (patch) | |
tree | f1d936ba7cfe6eff56304634bbc16e760d71837c /llvm/lib/Analysis/IntervalPartition.cpp | |
parent | 96a0dfa33e8469ef18866d1d89708af18929e38e (diff) | |
download | bcm5719-llvm-2675007573b820d1c084afe560105ab8a622d942.tar.gz bcm5719-llvm-2675007573b820d1c084afe560105ab8a622d942.zip |
* Standardize how analysis results/passes as printed with the print() virtual
methods
* Eliminate AnalysisID: Now it is just a typedef for const PassInfo*
* Simplify how AnalysisID's are initialized
* Eliminate Analysis/Writer.cpp/.h: incorporate printing functionality into
the analyses themselves.
llvm-svn: 3116
Diffstat (limited to 'llvm/lib/Analysis/IntervalPartition.cpp')
-rw-r--r-- | llvm/lib/Analysis/IntervalPartition.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IntervalPartition.cpp b/llvm/lib/Analysis/IntervalPartition.cpp index 5e6bf9ca4da..2e8668ae5d4 100644 --- a/llvm/lib/Analysis/IntervalPartition.cpp +++ b/llvm/lib/Analysis/IntervalPartition.cpp @@ -13,7 +13,7 @@ using std::make_pair; static RegisterAnalysis<IntervalPartition> X("intervals", "Interval Partition Construction"); -AnalysisID IntervalPartition::ID(AnalysisID::create<IntervalPartition>(), true); +AnalysisID IntervalPartition::ID = X; //===----------------------------------------------------------------------===// // IntervalPartition Implementation @@ -26,6 +26,11 @@ void IntervalPartition::destroy() { RootInterval = 0; } +void IntervalPartition::print(ostream &O) const { + std::copy(begin(), end(), + std::ostream_iterator<const Interval *>(O, "\n")); +} + // addIntervalToPartition - Add an interval to the internal list of intervals, // and then add mappings from all of the basic blocks in the interval to the // interval itself (in the IntervalMap). |