From: Chandler Carruth Date: Tue, 13 Jan 2015 21:30:27 +0000 (+0000) Subject: [PM] Sink the convenience typedefs after the class template they are X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6dc4b28cd41d6708d6b5c6cfe14355b99ce0e1ed;p=oota-llvm.git [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225833 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/PassManager.h b/include/llvm/IR/PassManager.h index 736c05deca0..0b2a0c4ab7b 100644 --- a/include/llvm/IR/PassManager.h +++ b/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. ///