diff options
Diffstat (limited to 'include/llvm/IR/PassManagerInternal.h')
-rw-r--r-- | include/llvm/IR/PassManagerInternal.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/IR/PassManagerInternal.h b/include/llvm/IR/PassManagerInternal.h index 387dc4c65c43..9195d4dfa428 100644 --- a/include/llvm/IR/PassManagerInternal.h +++ b/include/llvm/IR/PassManagerInternal.h @@ -27,7 +27,6 @@ namespace llvm { template <typename IRUnitT> class AllAnalysesOn; template <typename IRUnitT, typename... ExtraArgTs> class AnalysisManager; -class Invalidator; class PreservedAnalyses; /// \brief Implementation details of the pass manager interfaces. @@ -116,7 +115,7 @@ struct AnalysisResultConcept { /// \brief SFINAE metafunction for computing whether \c ResultT provides an /// \c invalidate member function. template <typename IRUnitT, typename ResultT> class ResultHasInvalidateMethod { - typedef char EnabledType; + using EnabledType = char; struct DisabledType { char a, b; }; @@ -124,7 +123,7 @@ template <typename IRUnitT, typename ResultT> class ResultHasInvalidateMethod { // Purely to help out MSVC which fails to disable the below specialization, // explicitly enable using the result type's invalidate routine if we can // successfully call that routine. - template <typename T> struct Nonce { typedef EnabledType Type; }; + template <typename T> struct Nonce { using Type = EnabledType; }; template <typename T> static typename Nonce<decltype(std::declval<T>().invalidate( std::declval<IRUnitT &>(), std::declval<PreservedAnalyses>()))>::Type @@ -280,9 +279,9 @@ struct AnalysisPassModel : AnalysisPassConcept<IRUnitT, PreservedAnalysesT, } // FIXME: Replace PassT::Result with type traits when we use C++11. - typedef AnalysisResultModel<IRUnitT, PassT, typename PassT::Result, - PreservedAnalysesT, InvalidatorT> - ResultModelT; + using ResultModelT = + AnalysisResultModel<IRUnitT, PassT, typename PassT::Result, + PreservedAnalysesT, InvalidatorT>; /// \brief The model delegates to the \c PassT::run method. /// |