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

Chandler Carruth chandlerc at gmail.com
Tue Jan 13 13:30:27 PST 2015


Author: chandlerc
Date: Tue Jan 13 15:30:27 2015
New Revision: 225833

URL: http://llvm.org/viewvc/llvm-project?rev=225833&view=rev
Log:
[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.

Modified:
    llvm/trunk/include/llvm/IR/PassManager.h

Modified: llvm/trunk/include/llvm/IR/PassManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/PassManager.h?rev=225833&r1=225832&r2=225833&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/PassManager.h (original)
+++ llvm/trunk/include/llvm/IR/PassManager.h Tue Jan 13 15:30:27 2015
@@ -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.
 ///





More information about the llvm-commits mailing list