1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Add new helper template function

llvm-svn: 5622
This commit is contained in:
Chris Lattner 2003-02-25 00:00:50 +00:00
parent 953428667f
commit 38e874dd6e

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 {