mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-24 08:18:33 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user