[PM] Sink the convenience typedefs after the class template they are
authorChandler Carruth <chandlerc@gmail.com>
Tue, 13 Jan 2015 21:30:27 +0000 (21:30 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 13 Jan 2015 21:30:27 +0000 (21:30 +0000)
referring to and give them nice comments.

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

llvm-svn: 225833

llvm/include/llvm/IR/PassManager.h

index 736c05d..0b2a0c4 100644 (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.
 ///