Add new helper template function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5622 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-02-25 00:00:50 +00:00
parent be677588a3
commit f288ff7774

View File

@ -171,6 +171,8 @@ protected:
template<typename PassName>
Pass *callDefaultCtor() { return new PassName(); }
template<typename PassName>
Pass *callTargetDataCtor(const TargetData &TD) { return new PassName(TD); }
template<typename PassName>
struct RegisterPass : public RegisterPassBase {