diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index 62fdf265eb0..08cc59c761d 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -171,6 +171,8 @@ protected: template Pass *callDefaultCtor() { return new PassName(); } +template +Pass *callTargetDataCtor(const TargetData &TD) { return new PassName(TD); } template struct RegisterPass : public RegisterPassBase {