mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-02 09:58:06 +00:00
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:
parent
be677588a3
commit
f288ff7774
@ -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…
x
Reference in New Issue
Block a user