From 38e874dd6e53fb9ab6eea234f0fa3aefdd846f4a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 25 Feb 2003 00:00:50 +0000 Subject: [PATCH] Add new helper template function llvm-svn: 5622 --- include/llvm/PassSupport.h | 2 ++ 1 file changed, 2 insertions(+) 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 {