diff options
author | Owen Anderson <resistor@mac.com> | 2010-10-13 21:55:07 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-10-13 21:55:07 +0000 |
commit | 6bc4f49f898986b8d8fae4e3b5c65cb9d715b4da (patch) | |
tree | eb613b483ececf372dc67d17c94b10ce86639ee7 | |
parent | c266a366252139125aaa27702007d33ba0d9f1b3 (diff) | |
download | bcm5719-llvm-6bc4f49f898986b8d8fae4e3b5c65cb9d715b4da.tar.gz bcm5719-llvm-6bc4f49f898986b8d8fae4e3b5c65cb9d715b4da.zip |
Conversely, Analysis-implementations do NOT need to initialize the AnalysisGroup. It will only matter when
someone tries to require that AG, in which case it is the requester's responsibility to initialize it.
llvm-svn: 116442
-rw-r--r-- | llvm/include/llvm/PassSupport.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/include/llvm/PassSupport.h b/llvm/include/llvm/PassSupport.h index d9dc64a5b56..e0e4e8a6133 100644 --- a/llvm/include/llvm/PassSupport.h +++ b/llvm/include/llvm/PassSupport.h @@ -251,7 +251,6 @@ struct RegisterAnalysisGroup : public RegisterAGBase { #define INITIALIZE_AG_PASS(passName, agName, arg, name, cfg, analysis, def) \ static void* initialize##passName##PassOnce(PassRegistry &Registry) { \ - initialize##agName##AnalysisGroup(Registry); \ PassInfo *PI = new PassInfo(name, arg, & passName ::ID, \ PassInfo::NormalCtor_t(callDefaultCtor< passName >), cfg, analysis); \ Registry.registerPass(*PI); \ @@ -268,8 +267,7 @@ struct RegisterAnalysisGroup : public RegisterAGBase { static RegisterAnalysisGroup<agName, def> passName ## _ag(passName ## _info); #define INITIALIZE_AG_PASS_BEGIN(passName, agName, arg, n, cfg, analysis, def) \ - static void* initialize##passName##PassOnce(PassRegistry &Registry) { \ - initialize##agName##AnalysisGroup(Registry); + static void* initialize##passName##PassOnce(PassRegistry &Registry) { #define INITIALIZE_AG_PASS_END(passName, agName, arg, n, cfg, analysis, def) \ PassInfo *PI = new PassInfo(n, arg, & passName ::ID, \ |