diff options
author | Owen Anderson <resistor@mac.com> | 2010-07-21 23:07:00 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-07-21 23:07:00 +0000 |
commit | d8cc7be0262092882d848a1c7d8a4cb6752cce6f (patch) | |
tree | 750773301710bd6fa4184b6da9f5daa9dc8c143d /include | |
parent | 917290043f87b8efa6ba540bec5963013c517912 (diff) | |
download | external_llvm-d8cc7be0262092882d848a1c7d8a4cb6752cce6f.zip external_llvm-d8cc7be0262092882d848a1c7d8a4cb6752cce6f.tar.gz external_llvm-d8cc7be0262092882d848a1c7d8a4cb6752cce6f.tar.bz2 |
Add INSTANTIATE_AG_PASS, which combines RegisterPass<> with RegisterAnalysisGroup<> for pass registration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109058 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/PassSupport.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index 4e936c1..07dc7f1 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -209,7 +209,9 @@ struct RegisterAnalysisGroup : public RegisterAGBase { } }; - +#define INITIALIZE_AG_PASS(passName, agName, arg, name, cfg, analysis, def) \ + static RegisterPass<passName> passName ## _info(arg, name, cfg, analysis); \ + static RegisterAnalysisGroup<agName, def> passName ## _ag(passName ## _info) //===--------------------------------------------------------------------------- /// PassRegistrationListener class - This class is meant to be derived from by |