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:
parent
953428667f
commit
38e874dd6e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user