[llvm] r245324 - [LPM] Group the addPreserved template with the non-template variants,
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 11:18:37 PDT 2015
Author: chandlerc
Date: Tue Aug 18 13:18:37 2015
New Revision: 245324
URL: http://llvm.org/viewvc/llvm-project?rev=245324&view=rev
Log:
[LPM] Group the addPreserved template with the non-template variants,
NFC.
Modified:
llvm/trunk/include/llvm/PassAnalysisSupport.h
Modified: llvm/trunk/include/llvm/PassAnalysisSupport.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/PassAnalysisSupport.h?rev=245324&r1=245323&r2=245324&view=diff
==============================================================================
--- llvm/trunk/include/llvm/PassAnalysisSupport.h (original)
+++ llvm/trunk/include/llvm/PassAnalysisSupport.h Tue Aug 18 13:18:37 2015
@@ -72,14 +72,13 @@ public:
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 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
More information about the llvm-commits
mailing list