diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/Passes.h | 2 | ||||
-rw-r--r-- | include/llvm/Pass.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index 2585aebc1c..8849571731 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -135,7 +135,7 @@ protected: /// /// Add a target-independent CodeGen pass at this point in the pipeline. - void addCommonPass(char &ID); + void addPass(char &ID); /// printNoVerify - Add a pass to dump the machine function, if debugging is /// enabled. diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 104b272d09..a0cbca121d 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -175,6 +175,10 @@ public: // argument string, or null if it is not known. static const PassInfo *lookupPassInfo(StringRef Arg); + // createPass - Create a object for the specified pass class, + // or null if it is not known. + static Pass *createPass(char &TI); + /// getAnalysisIfAvailable<AnalysisType>() - Subclasses use this function to /// get analysis information that might be around, for example to update it. /// This is different than getAnalysis in that it can fail (if the analysis |