diff options
author | Owen Anderson <resistor@mac.com> | 2010-10-13 21:49:58 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-10-13 21:49:58 +0000 |
commit | 325e2643559fcec8b0396dfa16e415cc86a22a09 (patch) | |
tree | 71dfac12d39bf48c68a06fda5cf2b40429797bb2 /include/llvm/PassSupport.h | |
parent | a7dbc1ead75c99c16fee398c2b85adedccebffc3 (diff) | |
download | external_llvm-325e2643559fcec8b0396dfa16e415cc86a22a09.zip external_llvm-325e2643559fcec8b0396dfa16e415cc86a22a09.tar.gz external_llvm-325e2643559fcec8b0396dfa16e415cc86a22a09.tar.bz2 |
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
Diffstat (limited to 'include/llvm/PassSupport.h')
-rw-r--r-- | include/llvm/PassSupport.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; \ |