1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[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 85eaac222d
commit b48ad43008

View File

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