[PM] Sink the convenience typedefs after the class template they are

referring to and give them nice comments.

Previously, these were used, but now things use the generic form of the
AnalysisManager.

llvm-svn: 225833
This commit is contained in:
Chandler Carruth 2015-01-13 21:30:27 +00:00
parent b34838424a
commit 3d04aaf38b
1 changed files with 7 additions and 4 deletions

View File

@ -169,11 +169,8 @@ private:
SmallPtrSet<void *, 2> PreservedPassIDs;
};
// Forward declare the analysis manager template and two typedefs used in the
// pass managers.
// Forward declare the analysis manager template.
template <typename IRUnitT> class AnalysisManager;
typedef AnalysisManager<Module> ModuleAnalysisManager;
typedef AnalysisManager<Function> FunctionAnalysisManager;
/// \brief Manages a sequence of passes over units of IR.
///
@ -567,6 +564,12 @@ private:
AnalysisResultMapT AnalysisResults;
};
/// \brief Convenience typedef for the Module analysis manager.
typedef AnalysisManager<Module> ModuleAnalysisManager;
/// \brief Convenience typedef for the Function analysis manager.
typedef AnalysisManager<Function> FunctionAnalysisManager;
/// \brief A module analysis which acts as a proxy for a function analysis
/// manager.
///