[LPM] Group the addPreserved template with the non-template variants,
authorChandler Carruth <chandlerc@gmail.com>
Tue, 18 Aug 2015 18:18:37 +0000 (18:18 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 18 Aug 2015 18:18:37 +0000 (18:18 +0000)
NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245324 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/PassAnalysisSupport.h

index 0b318fc8fb0752ef401b5f5e177e4c2a5539d5e6..d5bdba72f78c60eb0513669495d7ad61b3efb8a0 100644 (file)
@@ -72,14 +72,13 @@ public:
     Preserved.push_back(&ID);
     return *this;
   }
     Preserved.push_back(&ID);
     return *this;
   }
-  ///@}
-
   /// Add the specified Pass class to the set of analyses preserved by this pass.
   template<class PassClass>
   AnalysisUsage &addPreserved() {
     Preserved.push_back(&PassClass::ID);
     return *this;
   }
   /// Add the specified Pass class to the set of analyses preserved by this pass.
   template<class PassClass>
   AnalysisUsage &addPreserved() {
     Preserved.push_back(&PassClass::ID);
     return *this;
   }
+  ///@}
 
   /// Add the Pass with the specified argument string to the set of analyses
   /// preserved by this pass. If no such Pass exists, do nothing. This can be
 
   /// Add the Pass with the specified argument string to the set of analyses
   /// preserved by this pass. If no such Pass exists, do nothing. This can be