summaryrefslogtreecommitdiff
path: root/include/llvm/PassSupport.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-10-13 21:49:58 +0000
committerOwen Anderson <resistor@mac.com>2010-10-13 21:49:58 +0000
commit325e2643559fcec8b0396dfa16e415cc86a22a09 (patch)
tree71dfac12d39bf48c68a06fda5cf2b40429797bb2 /include/llvm/PassSupport.h
parenta7dbc1ead75c99c16fee398c2b85adedccebffc3 (diff)
downloadllvm-325e2643559fcec8b0396dfa16e415cc86a22a09.tar.gz
llvm-325e2643559fcec8b0396dfa16e415cc86a22a09.tar.bz2
llvm-325e2643559fcec8b0396dfa16e415cc86a22a09.tar.xz
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h
index ecccf791fe..d9dc64a5b5 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; \