diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-27 01:12:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-27 01:12:15 +0000 |
commit | 97f51a3024a72ef8500e95b90e6361e6783160fd (patch) | |
tree | 4fab9417a9dc40dd475d7503281ef4e1c3a545d9 /include/llvm/Analysis/LoopInfo.h | |
parent | 9a740fdf2165e263da98480d9c24f1803f94ef0c (diff) | |
download | external_llvm-97f51a3024a72ef8500e95b90e6361e6783160fd.tar.gz external_llvm-97f51a3024a72ef8500e95b90e6361e6783160fd.tar.bz2 external_llvm-97f51a3024a72ef8500e95b90e6361e6783160fd.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/LoopInfo.h')
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index 03eda2973a..ae150d4619 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -40,6 +40,7 @@ public: inline const std::vector<Loop*> &getSubLoops() const { return SubLoops; } inline const std::vector<BasicBlock*> &getBlocks() const { return Blocks; } + void print(std::ostream &O) const; private: friend class LoopInfo; inline Loop(BasicBlock *BB) { Blocks.push_back(BB); LoopDepth = 0; } @@ -105,6 +106,7 @@ public: virtual bool runOnFunction(Function &F); virtual void releaseMemory(); + void print(std::ostream &O) const; // getAnalysisUsage - Provide loop info, require dominator set // |