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 | a59cbb2043c08f3cfb8fb379f0d336e21e070be8 (patch) | |
tree | 19ace2fcd6b60628e49d6c65ca1015cbff960916 /lib/Analysis/IPA/FindUsedTypes.cpp | |
parent | 97f51a3024a72ef8500e95b90e6361e6783160fd (diff) |
* 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@3116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/FindUsedTypes.cpp')
-rw-r--r-- | lib/Analysis/IPA/FindUsedTypes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp index 1139cf3df8..6f12612c4e 100644 --- a/lib/Analysis/IPA/FindUsedTypes.cpp +++ b/lib/Analysis/IPA/FindUsedTypes.cpp @@ -13,7 +13,7 @@ static RegisterAnalysis<FindUsedTypes> X("printusedtypes", "Find Used Types"); -AnalysisID FindUsedTypes::ID(AnalysisID::create<FindUsedTypes>()); +AnalysisID FindUsedTypes::ID = X; // IncorporateType - Incorporate one type and all of its subtypes into the // collection of used types. @@ -68,7 +68,7 @@ bool FindUsedTypes::run(Module &m) { // passed in, then the types are printed symbolically if possible, using the // symbol table from the module. // -void FindUsedTypes::printTypes(std::ostream &o, const Module *M) const { +void FindUsedTypes::print(std::ostream &o, const Module *M) const { o << "Types in use by this module:\n"; if (M) { CachedWriter CW(M, o); |