diff options
| author | Owen Anderson <resistor@mac.com> | 2010-10-07 04:13:08 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2010-10-07 04:13:08 +0000 |
| commit | 5e19bfcde35b09793bd26bf37242b7b97cbee056 (patch) | |
| tree | f46fd471b6ad3e7499736c00893959d328c97543 /llvm/include | |
| parent | 0ed37c96154c867d16e3855c99ebb1bfcd0e689c (diff) | |
| download | bcm5719-llvm-5e19bfcde35b09793bd26bf37242b7b97cbee056.tar.gz bcm5719-llvm-5e19bfcde35b09793bd26bf37242b7b97cbee056.zip | |
Move the pass initialization helper functions into the llvm namespace, and add
a header declaring them all. This is also where we will declare per-library pass-set
initializer functions down the road.
llvm-svn: 115900
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/PassSupport.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/include/llvm/PassSupport.h b/llvm/include/llvm/PassSupport.h index 2c17ddd217a..4c630105bba 100644 --- a/llvm/include/llvm/PassSupport.h +++ b/llvm/include/llvm/PassSupport.h @@ -23,6 +23,7 @@ #include "Pass.h" #include "llvm/PassRegistry.h" +#include "llvm/InitializePasses.h" #include <vector> namespace llvm { @@ -128,7 +129,7 @@ private: }; #define INITIALIZE_PASS(passName, arg, name, cfg, analysis) \ - void initialize##passName##Pass(PassRegistry &Registry) { \ + void llvm::initialize##passName##Pass(PassRegistry &Registry) { \ PassInfo *PI = new PassInfo(name, arg, & passName ::ID, \ PassInfo::NormalCtor_t(callDefaultCtor< passName >), cfg, analysis); \ Registry.registerPass(*PI); \ @@ -211,14 +212,14 @@ struct RegisterAnalysisGroup : public RegisterAGBase { }; #define INITIALIZE_ANALYSIS_GROUP(agName, name) \ - void initialize##agName##AnalysisGroup(PassRegistry &Registry) { \ + void llvm::initialize##agName##AnalysisGroup(PassRegistry &Registry) { \ PassInfo *AI = new PassInfo(name, & agName :: ID); \ Registry.registerAnalysisGroup(& agName ::ID, 0, *AI, false); \ } \ static RegisterAnalysisGroup<agName> agName##_info (name) #define INITIALIZE_AG_PASS(passName, agName, arg, name, cfg, analysis, def) \ - void initialize##passName##Pass(PassRegistry &Registry) { \ + void llvm::initialize##passName##Pass(PassRegistry &Registry) { \ PassInfo *PI = new PassInfo(name, arg, & passName ::ID, \ PassInfo::NormalCtor_t(callDefaultCtor< passName >), cfg, analysis); \ Registry.registerPass(*PI); \ |

