From 3d04aaf38be8ad6e1b2702f9d7d1629eb2f248a1 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 13 Jan 2015 21:30:27 +0000 Subject: [PATCH] [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 --- llvm/include/llvm/IR/PassManager.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/IR/PassManager.h b/llvm/include/llvm/IR/PassManager.h index 736c05d..0b2a0c4 100644 --- a/llvm/include/llvm/IR/PassManager.h +++ b/llvm/include/llvm/IR/PassManager.h @@ -169,11 +169,8 @@ private: SmallPtrSet PreservedPassIDs; }; -// Forward declare the analysis manager template and two typedefs used in the -// pass managers. +// Forward declare the analysis manager template. template class AnalysisManager; -typedef AnalysisManager ModuleAnalysisManager; -typedef AnalysisManager 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 ModuleAnalysisManager; + +/// \brief Convenience typedef for the Function analysis manager. +typedef AnalysisManager FunctionAnalysisManager; + /// \brief A module analysis which acts as a proxy for a function analysis /// manager. /// -- 2.7.4