From f288ff77747579b82b56fb875673a6383ba4ca2e 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5622 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 {