diff options
-rw-r--r-- | include/llvm/PassSupport.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index 62fdf265eb..08cc59c761 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -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 { |