forked from OSchip/llvm-project
[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:
parent
b34838424a
commit
3d04aaf38b
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue