From 325e2643559fcec8b0396dfa16e415cc86a22a09 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 13 Oct 2010 21:49:58 +0000 Subject: Analysis groups need to initialize their default implementations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116441 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/PassSupport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/llvm/PassSupport.h') diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index ecccf79..d9dc64a 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -236,8 +236,9 @@ struct RegisterAnalysisGroup : public RegisterAGBase { } }; -#define INITIALIZE_ANALYSIS_GROUP(agName, name) \ +#define INITIALIZE_ANALYSIS_GROUP(agName, name, defaultPass) \ static void* initialize##agName##AnalysisGroupOnce(PassRegistry &Registry) { \ + initialize##defaultPass##Pass(Registry); \ PassInfo *AI = new PassInfo(name, & agName :: ID); \ Registry.registerAnalysisGroup(& agName ::ID, 0, *AI, false); \ return AI; \ -- cgit v1.1