mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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>
|
template<typename PassName>
|
||||||
Pass *callDefaultCtor() { return new PassName(); }
|
Pass *callDefaultCtor() { return new PassName(); }
|
||||||
|
template<typename PassName>
|
||||||
|
Pass *callTargetDataCtor(const TargetData &TD) { return new PassName(TD); }
|
||||||
|
|
||||||
template<typename PassName>
|
template<typename PassName>
|
||||||
struct RegisterPass : public RegisterPassBase {
|
struct RegisterPass : public RegisterPassBase {
|
||||||
|
Loading…
Reference in New Issue
Block a user